类 ConfigurableSystemProcessExitCodeMapper
- java.lang.Object
- org.springframework.batch.core.step.tasklet.ConfigurableSystemProcessExitCodeMapper
- 所有已实现的接口:
SystemProcessExitCodeMapper
public class ConfigurableSystemProcessExitCodeMapper extends java.lang.Object implements SystemProcessExitCodeMapper
Maps exit codes toExitStatus
according to injected map. The injected map is required to contain a value for 'else' key, this value will be returned if the injected map does not contain value for the exit code returned by the system process.- 作者:
- Robert Kasanicky
字段概要
字段 修饰符和类型 字段 说明 static java.lang.String
ELSE_KEY
构造器概要
构造器 构造器 说明 ConfigurableSystemProcessExitCodeMapper()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExitStatus
getExitStatus(int exitCode)
void
setMappings(java.util.Map<java.lang.Object,ExitStatus> mappings)
构造器详细资料
ConfigurableSystemProcessExitCodeMapper
public ConfigurableSystemProcessExitCodeMapper()
方法详细资料
getExitStatus
public ExitStatus getExitStatus(int exitCode)
- 指定者:
getExitStatus
在接口中SystemProcessExitCodeMapper
- 参数:
exitCode
- exit code returned by the system process- 返回:
- ExitStatus appropriate for the
systemExitCode
parameter value
setMappings
public void setMappings(java.util.Map<java.lang.Object,ExitStatus> mappings)
- 参数:
mappings
-Integer
exit code keys toExitStatus
values.