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 |
getUserInterrupted() |
static void |
main(String[] args) |
void |
setRedirectChildProcessToStdOut(boolean redirectChildProcessToStdOut)
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 getUserInterrupted()
public void setRedirectChildProcessToStdOut(boolean redirectChildProcessToStdOut)
redirectChildProcessToStdOut
- should the driver redirect the child's stdoutCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.