Package org.apache.tika.batch
Class BatchProcessDriverCLI
java.lang.Object
org.apache.tika.batch.BatchProcessDriverCLI
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
This relies on an special exit values of 254 (do not restart), 0 ended correctly, 253 ended with exception (do restart) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
int
boolean
static void
void
setRedirectForkedProcessToStdOut
(boolean redirectForkedProcessToStdOut) Typically only used for testing.
-
Field Details
-
PROCESS_RESTART_EXIT_CODE
public static final int PROCESS_RESTART_EXIT_CODEThis relies on an special exit values of 254 (do not restart), 0 ended correctly, 253 ended with exception (do restart)- See Also:
-
PROCESS_NO_RESTART_EXIT_CODE
public static final int PROCESS_NO_RESTART_EXIT_CODE- See Also:
-
PROCESS_COMPLETED_SUCCESSFULLY
public static final int PROCESS_COMPLETED_SUCCESSFULLY- See Also:
-
-
Constructor Details
-
BatchProcessDriverCLI
-
-
Method Details
-
main
- Throws:
Exception
-
execute
- Throws:
Exception
-
getNumRestarts
public int getNumRestarts() -
isUserInterrupted
public boolean isUserInterrupted() -
setRedirectForkedProcessToStdOut
public void setRedirectForkedProcessToStdOut(boolean redirectForkedProcessToStdOut) Typically only used for testing. This determines whether or not to redirect forked process's stdOut to driver's stdout- Parameters:
redirectForkedProcessToStdOut
- should the driver redirect the child's stdout
-