public enum ProcessStatus extends java.lang.Enum<ProcessStatus>
Enum Constant and Description |
---|
APPLICATION_CONF_FILES_COPY_FAILURE
Job failed to create Pig log dir.
|
APPLICATION_JAR_FILES_COPY_FAILURE
Job failed to copy pig conf files from S3.
|
CLUSTER_CONF_FILES_COPY_FAILURE
Job failure during run.
|
COMMAND_CONF_FILES_COPY_FAILURE
Job failed to create Hive log dir.
|
COMMAND_RUN_FAILURE
Command Run Failure.
|
ENV_VARIABLES_SOURCE_AND_SETUP_FAILURE
Job failed to copy Hive conf files from S3.
|
HADOOP_LOCAL_CONF_COPY_FAILURE
Job failed while copying user dependencies from S3.
|
JOB_DEPENDENCIES_COPY_FAILURE
Job succeeded, but failed to archive logs to S3.
|
JOB_INTERRUPTED
Job was run, but interrupted.
|
JOB_KILLED
Job was killed.
|
MKDIR_CONF_FAILURE
Job failed to create conf directory.
|
MKDIR_JAR_FAILURE
Job failed to create job results directory.
|
SUCCESS
Job ran successfully.
|
UPDATE_CORE_SITE_XML_FAILURE
Job failed to copy Hadoop conf files from S3.
|
ZOMBIE_JOB
Job was a zombie, hence marked as failed.
|
Modifier and Type | Method and Description |
---|---|
int |
getExitCode()
Return the status getExitCode for the job.
|
java.lang.String |
getMessage()
Return the getMessage associated with each status getExitCode.
|
static ProcessStatus |
parse(int exitCode)
Try to create a ProcessStatus from an exit code,
if one doesn't exist an exception will be thrown.
|
static ProcessStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ProcessStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProcessStatus JOB_INTERRUPTED
public static final ProcessStatus SUCCESS
public static final ProcessStatus MKDIR_JAR_FAILURE
public static final ProcessStatus MKDIR_CONF_FAILURE
public static final ProcessStatus HADOOP_LOCAL_CONF_COPY_FAILURE
public static final ProcessStatus UPDATE_CORE_SITE_XML_FAILURE
public static final ProcessStatus ENV_VARIABLES_SOURCE_AND_SETUP_FAILURE
public static final ProcessStatus CLUSTER_CONF_FILES_COPY_FAILURE
public static final ProcessStatus COMMAND_CONF_FILES_COPY_FAILURE
public static final ProcessStatus APPLICATION_CONF_FILES_COPY_FAILURE
public static final ProcessStatus APPLICATION_JAR_FILES_COPY_FAILURE
public static final ProcessStatus JOB_DEPENDENCIES_COPY_FAILURE
public static final ProcessStatus JOB_KILLED
public static final ProcessStatus ZOMBIE_JOB
public static final ProcessStatus COMMAND_RUN_FAILURE
public static ProcessStatus[] values()
for (ProcessStatus c : ProcessStatus.values()) System.out.println(c);
public static ProcessStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getExitCode()
public java.lang.String getMessage()
public static ProcessStatus parse(int exitCode) throws GeniePreconditionException
exitCode
- The exit code to attempt to parse.GeniePreconditionException
- If the code isn't available.