public class SimpleJvmExitCodeMapper extends 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 |
|---|---|
Map<String,Integer> |
getMapping() |
int |
intValue(String exitCode)
Get the operating system exit status that matches a certain Batch
Framework Exitcode
|
void |
setMapping(Map<String,Integer> exitCodeMap)
Supply the ExitCodeMappings
|
public void setMapping(Map<String,Integer> exitCodeMap)
exitCodeMap - A set of mappings between environment specific exit
codes and batch framework internal exit codespublic int intValue(String exitCode)
intValue in interface ExitCodeMapperexitCode - The exitcode of the Batch Job as known by the Batch
FrameworkCopyright © 2013. All rights reserved.