Package org.apache.tika.pipes
Class PipesServer
- java.lang.Object
-
- org.apache.tika.pipes.PipesServer
-
- All Implemented Interfaces:
Runnable
public class PipesServer extends Object implements 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
Nested Classes Modifier and Type Class Description static class
PipesServer.STATUS
-
Field Summary
Fields Modifier and Type Field Description static int
TIMEOUT_EXIT_CODE
-
Constructor Summary
Constructors Constructor Description PipesServer(Path tikaConfigPath, InputStream in, PrintStream out, long maxForEmitBatchBytes, long serverParseTimeoutMillis, long serverWaitTimeoutMillis)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initializeResources()
static void
main(String[] args)
protected org.apache.tika.pipes.PipesServer.MetadataListAndEmbeddedBytes
parseFromTuple(FetchEmitTuple t, Fetcher fetcher)
void
processRequests()
void
run()
-
-
-
Field Detail
-
TIMEOUT_EXIT_CODE
public static final int TIMEOUT_EXIT_CODE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PipesServer
public PipesServer(Path tikaConfigPath, InputStream in, PrintStream out, long maxForEmitBatchBytes, long serverParseTimeoutMillis, long serverWaitTimeoutMillis) throws IOException, TikaException, SAXException
- Throws:
IOException
TikaException
SAXException
-
-
Method Detail
-
processRequests
public void processRequests()
-
parseFromTuple
protected org.apache.tika.pipes.PipesServer.MetadataListAndEmbeddedBytes parseFromTuple(FetchEmitTuple t, Fetcher fetcher)
-
initializeResources
protected void initializeResources() throws TikaException, IOException, SAXException
- Throws:
TikaException
IOException
SAXException
-
-