public class BatchProcessDriverCLI extends Object
Modifier and Type | Field and 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 and Description |
---|
BatchProcessDriverCLI(String[] commandLine) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
int |
getNumRestarts() |
boolean |
isUserInterrupted() |
static void |
main(String[] args) |
void |
setRedirectForkedProcessToStdOut(boolean redirectForkedProcessToStdOut)
Typically only used for testing.
|
public static final int PROCESS_RESTART_EXIT_CODE
public static final int PROCESS_NO_RESTART_EXIT_CODE
public static final int PROCESS_COMPLETED_SUCCESSFULLY
public BatchProcessDriverCLI(String[] commandLine)
public int getNumRestarts()
public boolean isUserInterrupted()
public void setRedirectForkedProcessToStdOut(boolean redirectForkedProcessToStdOut)
redirectForkedProcessToStdOut
- should the driver redirect the child's stdoutCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.