org.springframework.batch.core.step.tasklet

## Class SimpleSystemProcessExitCodeMapper

- java.lang.Object
- - org.springframework.batch.core.step.tasklet.SimpleSystemProcessExitCodeMapper

- All Implemented Interfaces:
    SystemProcessExitCodeMapper

      public class SimpleSystemProcessExitCodeMapper
      extends java.lang.Object
      implements SystemProcessExitCodeMapper

  Simple `SystemProcessExitCodeMapper` implementation that performs following mapping: 0 -> ExitStatus.FINISHED else -> ExitStatus.FAILED
  Author:
    Robert Kasanicky

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleSystemProcessExitCodeMapper()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ExitStatus` | `getExitStatus(int exitCode)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleSystemProcessExitCodeMapper

          public SimpleSystemProcessExitCodeMapper()

  - ### Method Detail

    - #### getExitStatus

          public ExitStatus getExitStatus(int exitCode)

      Specified by:
        `getExitStatus` in interface `SystemProcessExitCodeMapper`
      Parameters:
        `exitCode` - exit code returned by the system process
      Returns:
        ExitStatus appropriate for the `systemExitCode` parameter value