Package org.apache.tika.pipes.grpc
Class TikaGrpcServer
- java.lang.Object
-
- org.apache.tika.pipes.grpc.TikaGrpcServer
-
public class TikaGrpcServer extends Object
Server that manages startup/shutdown of the GRPC Tika server.
-
-
Field Summary
Fields Modifier and Type Field Description static int
TIKA_SERVER_GRPC_DEFAULT_PORT
-
Constructor Summary
Constructors Constructor Description TikaGrpcServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
blockUntilShutdown()
Await termination on the main thread since the grpc library uses daemon threads.static void
main(String[] args)
Main launches the server from the command line.TikaGrpcServer
setCertChain(File certChain)
TikaGrpcServer
setClientAuthRequired(boolean clientAuthRequired)
TikaGrpcServer
setPort(Integer port)
TikaGrpcServer
setPrivateKey(File privateKey)
TikaGrpcServer
setPrivateKeyPassword(String privateKeyPassword)
TikaGrpcServer
setSecure(boolean secure)
TikaGrpcServer
setServer(io.grpc.Server server)
TikaGrpcServer
setTikaConfigXml(File tikaConfigXml)
TikaGrpcServer
setTrustCertCollection(File trustCertCollection)
void
start()
void
stop()
-
-
-
Field Detail
-
TIKA_SERVER_GRPC_DEFAULT_PORT
public static final int TIKA_SERVER_GRPC_DEFAULT_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
stop
public void stop() throws InterruptedException
- Throws:
InterruptedException
-
blockUntilShutdown
public void blockUntilShutdown() throws InterruptedException
Await termination on the main thread since the grpc library uses daemon threads.- Throws:
InterruptedException
-
main
public static void main(String[] args) throws Exception
Main launches the server from the command line.- Throws:
Exception
-
setTikaConfigXml
public TikaGrpcServer setTikaConfigXml(File tikaConfigXml)
-
setServer
public TikaGrpcServer setServer(io.grpc.Server server)
-
setPort
public TikaGrpcServer setPort(Integer port)
-
setSecure
public TikaGrpcServer setSecure(boolean secure)
-
setCertChain
public TikaGrpcServer setCertChain(File certChain)
-
setPrivateKey
public TikaGrpcServer setPrivateKey(File privateKey)
-
setPrivateKeyPassword
public TikaGrpcServer setPrivateKeyPassword(String privateKeyPassword)
-
setTrustCertCollection
public TikaGrpcServer setTrustCertCollection(File trustCertCollection)
-
setClientAuthRequired
public TikaGrpcServer setClientAuthRequired(boolean clientAuthRequired)
-
-