Package org.apache.tika.pipes.grpc
Class TikaGrpcServer
java.lang.Object
org.apache.tika.pipes.grpc.TikaGrpcServer
Server that manages startup/shutdown of the GRPC Tika server.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAwait termination on the main thread since the grpc library uses daemon threads.static voidMain launches the server from the command line.setCertChain(File certChain) setClientAuthRequired(boolean clientAuthRequired) setPrivateKey(File privateKey) setPrivateKeyPassword(String privateKeyPassword) setSecure(boolean secure) setServer(io.grpc.Server server) setTikaConfig(File tikaConfig) setTrustCertCollection(File trustCertCollection) voidstart()voidstop()
-
Field Details
-
TIKA_SERVER_GRPC_DEFAULT_PORT
public static final int TIKA_SERVER_GRPC_DEFAULT_PORT- See Also:
-
-
Constructor Details
-
TikaGrpcServer
public TikaGrpcServer()
-
-
Method Details
-
start
- Throws:
Exception
-
stop
- Throws:
InterruptedException
-
blockUntilShutdown
Await termination on the main thread since the grpc library uses daemon threads.- Throws:
InterruptedException
-
main
Main launches the server from the command line.- Throws:
Exception
-
setTikaConfig
-
setServer
-
setPort
-
setSecure
-
setCertChain
-
setPrivateKey
-
setPrivateKeyPassword
-
setTrustCertCollection
-
setClientAuthRequired
-