Spring for Apache Hadoop

org.springframework.yarn.launch
Interface ExitCodeMapper

All Known Implementing Classes:
SimpleJvmExitCodeMapper

public interface ExitCodeMapper

This interface should be implemented when an environment calling the batch framework has specific requirements regarding the operating system process return status.

Author:
Janne Valkealahti

Field Summary
static int JVM_EXITCODE_COMPLETED
           
static int JVM_EXITCODE_FORCE_KILLED
           
static int JVM_EXITCODE_GENERIC_ERROR
           
static int JVM_EXITCODE_INVALID_CONFIG_FILE
           
static int JVM_EXITCODE_INVALID_CONTAINER_EXEC_PERMISSIONS
           
static int JVM_EXITCODE_INVALID_CONTAINER_PID
           
static int JVM_EXITCODE_INVALID_USER_NAME
           
static int JVM_EXITCODE_TERMINATED
           
static int JVM_EXITCODE_UNABLE_TO_EXECUTE_CONTAINER_SCRIPT
           
static int JVM_EXITCODE_WRITE_CGROUP_FAILED
           
 
Method Summary
 int intValue(java.lang.String exitCode)
          Convert the exit code from String into an integer that the calling environment as an operating system can interpret as an exit status.
 

Field Detail

JVM_EXITCODE_COMPLETED

static final int JVM_EXITCODE_COMPLETED
See Also:
Constant Field Values

JVM_EXITCODE_GENERIC_ERROR

static final int JVM_EXITCODE_GENERIC_ERROR
See Also:
Constant Field Values

JVM_EXITCODE_INVALID_USER_NAME

static final int JVM_EXITCODE_INVALID_USER_NAME
See Also:
Constant Field Values

JVM_EXITCODE_UNABLE_TO_EXECUTE_CONTAINER_SCRIPT

static final int JVM_EXITCODE_UNABLE_TO_EXECUTE_CONTAINER_SCRIPT
See Also:
Constant Field Values

JVM_EXITCODE_INVALID_CONTAINER_PID

static final int JVM_EXITCODE_INVALID_CONTAINER_PID
See Also:
Constant Field Values

JVM_EXITCODE_INVALID_CONTAINER_EXEC_PERMISSIONS

static final int JVM_EXITCODE_INVALID_CONTAINER_EXEC_PERMISSIONS
See Also:
Constant Field Values

JVM_EXITCODE_INVALID_CONFIG_FILE

static final int JVM_EXITCODE_INVALID_CONFIG_FILE
See Also:
Constant Field Values

JVM_EXITCODE_WRITE_CGROUP_FAILED

static final int JVM_EXITCODE_WRITE_CGROUP_FAILED
See Also:
Constant Field Values

JVM_EXITCODE_FORCE_KILLED

static final int JVM_EXITCODE_FORCE_KILLED
See Also:
Constant Field Values

JVM_EXITCODE_TERMINATED

static final int JVM_EXITCODE_TERMINATED
See Also:
Constant Field Values
Method Detail

intValue

int intValue(java.lang.String exitCode)
Convert the exit code from String into an integer that the calling environment as an operating system can interpret as an exit status.

Parameters:
exitCode - The exit code which is used internally.
Returns:
The corresponding exit status as known by the calling environment.

Spring for Apache Hadoop