public class SimpleJvmExitCodeMapper extends java.lang.Object implements ExitCodeMapper
ExitCodeMapper that can be configured through a
map from batch exit codes (String) to integer results. Some default entries
are set up to recognise common cases. Any that are injected are added to these.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger |
JOB_NOT_PROVIDED, JVM_EXITCODE_COMPLETED, JVM_EXITCODE_GENERIC_ERROR, JVM_EXITCODE_JOB_ERROR, NO_SUCH_JOB| Constructor and Description |
|---|
SimpleJvmExitCodeMapper() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Integer> |
getMapping() |
int |
intValue(java.lang.String exitCode)
Get the operating system exit status that matches a certain Batch
Framework exit code
|
void |
setMapping(java.util.Map<java.lang.String,java.lang.Integer> exitCodeMap)
Supply the ExitCodeMappings
|
public java.util.Map<java.lang.String,java.lang.Integer> getMapping()
public void setMapping(java.util.Map<java.lang.String,java.lang.Integer> exitCodeMap)
exitCodeMap - A set of mappings between environment specific exit
codes and batch framework internal exit codespublic int intValue(java.lang.String exitCode)
intValue in interface ExitCodeMapperexitCode - The exit code of the Batch Job as known by the Batch
Framework