Class SimpleSystemProcessExitCodeMapper
java.lang.Object
org.springframework.batch.core.step.tasklet.SimpleSystemProcessExitCodeMapper
- All Implemented Interfaces:
SystemProcessExitCodeMapper
public class SimpleSystemProcessExitCodeMapper
extends Object
implements SystemProcessExitCodeMapper
Simple
SystemProcessExitCodeMapper
implementation that performs following
mapping:
0 -> ExitStatus.FINISHED else -> ExitStatus.FAILED- Author:
- Robert Kasanicky
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SimpleSystemProcessExitCodeMapper
public SimpleSystemProcessExitCodeMapper()
-
-
Method Details
-
getExitStatus
- Specified by:
getExitStatus
in interfaceSystemProcessExitCodeMapper
- Parameters:
exitCode
- exit code returned by the system process- Returns:
- ExitStatus appropriate for the
systemExitCode
parameter value
-