类 SimpleJvmExitCodeMapper

  • 所有已实现的接口:
    ExitCodeMapper

    public class SimpleJvmExitCodeMapper
    extends java.lang.Object
    implements ExitCodeMapper
    An implementation of 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.
    作者:
    Stijn Maller, Lucas Ward, Dave Syer
    • 字段详细资料

      • logger

        protected org.apache.commons.logging.Log logger
    • 方法详细资料

      • getMapping

        public java.util.Map<java.lang.String,​java.lang.Integer> getMapping()
      • setMapping

        public void setMapping​(java.util.Map<java.lang.String,​java.lang.Integer> exitCodeMap)
        Supply the ExitCodeMappings
        参数:
        exitCodeMap - A set of mappings between environment specific exit codes and batch framework internal exit codes
      • intValue

        public int intValue​(java.lang.String exitCode)
        Get the operating system exit status that matches a certain Batch Framework exit code
        指定者:
        intValue 在接口中 ExitCodeMapper
        参数:
        exitCode - The exit code of the Batch Job as known by the Batch Framework
        返回:
        The exitCode of the Batch Job as known by the JVM