Example usage for org.springframework.batch.core.launch.support ExitCodeMapper JOB_NOT_PROVIDED

List of usage examples for org.springframework.batch.core.launch.support ExitCodeMapper JOB_NOT_PROVIDED

Introduction

In this page you can find the example usage for org.springframework.batch.core.launch.support ExitCodeMapper JOB_NOT_PROVIDED.

Prototype

String JOB_NOT_PROVIDED

To view the source code for org.springframework.batch.core.launch.support ExitCodeMapper JOB_NOT_PROVIDED.

Click Source Link

Usage

From source file:org.springframework.batch.core.launch.support.SimpleJvmExitCodeMapper.java

public SimpleJvmExitCodeMapper() {
    mapping = new HashMap<String, Integer>();
    mapping.put(ExitStatus.COMPLETED.getExitCode(), JVM_EXITCODE_COMPLETED);
    mapping.put(ExitStatus.FAILED.getExitCode(), JVM_EXITCODE_GENERIC_ERROR);
    mapping.put(ExitCodeMapper.JOB_NOT_PROVIDED, JVM_EXITCODE_JOB_ERROR);
    mapping.put(ExitCodeMapper.NO_SUCH_JOB, JVM_EXITCODE_JOB_ERROR);
}