Package org.apache.tika.pipes
Class PipesServer
java.lang.Object
org.apache.tika.pipes.PipesServer
- All Implemented Interfaces:
Runnable
This server is forked from the PipesClient. This class isolates
parsing from the client to protect the primary JVM.
When configuring logging for this class, make absolutely certain not to write to STDOUT. This class uses STDOUT to communicate with the PipesClient.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPipesServer
(Path tikaConfigPath, InputStream in, PrintStream out, long maxForEmitBatchBytes, long serverParseTimeoutMillis, long serverWaitTimeoutMillis) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
static void
protected org.apache.tika.pipes.PipesServer.MetadataListAndEmbeddedBytes
parseFromTuple
(FetchEmitTuple t, Fetcher fetcher) void
void
run()
-
Field Details
-
TIMEOUT_EXIT_CODE
public static final int TIMEOUT_EXIT_CODE- See Also:
-
-
Constructor Details
-
PipesServer
public PipesServer(Path tikaConfigPath, InputStream in, PrintStream out, long maxForEmitBatchBytes, long serverParseTimeoutMillis, long serverWaitTimeoutMillis) throws IOException, TikaException, SAXException - Throws:
IOException
TikaException
SAXException
-
-
Method Details
-
main
- Throws:
Exception
-
run
public void run() -
processRequests
public void processRequests() -
parseFromTuple
protected org.apache.tika.pipes.PipesServer.MetadataListAndEmbeddedBytes parseFromTuple(FetchEmitTuple t, Fetcher fetcher) -
initializeResources
- Throws:
TikaException
IOException
SAXException
-