public static enum JobProtos.ResponseCode extends Enum<JobProtos.ResponseCode>
Enum Constant and Description |
---|
HEART_BEAT_SUCCESS |
JOB_IN_PROGRESS |
JOB_NOTIFY_SUCCESS |
JOB_PUSH_SUCCESS |
JOB_RECEIVE_FAILED |
JOB_RECEIVE_SUCCESS |
JOB_RUN_ERROR |
JOB_RUN_FAILURE |
NO_AVAILABLE_JOB_RUNNER |
NO_NODE_GROUP |
NO_TASK_TRACKER |
Modifier and Type | Method and Description |
---|---|
int |
code() |
static JobProtos.ResponseCode |
valueOf(int code) |
static JobProtos.ResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobProtos.ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobProtos.ResponseCode JOB_IN_PROGRESS
public static final JobProtos.ResponseCode JOB_RECEIVE_SUCCESS
public static final JobProtos.ResponseCode JOB_RECEIVE_FAILED
public static final JobProtos.ResponseCode JOB_RUN_ERROR
public static final JobProtos.ResponseCode JOB_RUN_FAILURE
public static final JobProtos.ResponseCode NO_TASK_TRACKER
public static final JobProtos.ResponseCode HEART_BEAT_SUCCESS
public static final JobProtos.ResponseCode NO_NODE_GROUP
public static final JobProtos.ResponseCode NO_AVAILABLE_JOB_RUNNER
public static final JobProtos.ResponseCode JOB_PUSH_SUCCESS
public static final JobProtos.ResponseCode JOB_NOTIFY_SUCCESS
public static JobProtos.ResponseCode[] values()
for (JobProtos.ResponseCode c : JobProtos.ResponseCode.values()) System.out.println(c);
public static JobProtos.ResponseCode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static JobProtos.ResponseCode valueOf(int code)
public int code()
Copyright © 2014. All Rights Reserved.