Package org.apache.tika.batch
Class BatchProcessDriverCLI
- java.lang.Object
-
- org.apache.tika.batch.BatchProcessDriverCLI
-
public class BatchProcessDriverCLI extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
PROCESS_COMPLETED_SUCCESSFULLY
static int
PROCESS_NO_RESTART_EXIT_CODE
static int
PROCESS_RESTART_EXIT_CODE
This relies on an special exit values of 254 (do not restart), 0 ended correctly, 253 ended with exception (do restart)
-
Constructor Summary
Constructors Constructor Description BatchProcessDriverCLI(String[] commandLine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
int
getNumRestarts()
boolean
isUserInterrupted()
static void
main(String[] args)
void
setRedirectForkedProcessToStdOut(boolean redirectForkedProcessToStdOut)
Typically only used for testing.
-
-
-
Field Detail
-
PROCESS_RESTART_EXIT_CODE
public static final int PROCESS_RESTART_EXIT_CODE
This relies on an special exit values of 254 (do not restart), 0 ended correctly, 253 ended with exception (do restart)- See Also:
- Constant Field Values
-
PROCESS_NO_RESTART_EXIT_CODE
public static final int PROCESS_NO_RESTART_EXIT_CODE
- See Also:
- Constant Field Values
-
PROCESS_COMPLETED_SUCCESSFULLY
public static final int PROCESS_COMPLETED_SUCCESSFULLY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BatchProcessDriverCLI
public BatchProcessDriverCLI(String[] commandLine)
-
-
Method Detail
-
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
-
-