public static enum JobProtos.RequestCode extends Enum<JobProtos.RequestCode>
Enum Constant and Description |
---|
ASK_JOB_PROGRESS |
HEART_BEAT |
JOB_ASK |
JOB_FINISHED |
PUSH_JOB |
SUBMIT_JOB |
Modifier and Type | Method and Description |
---|---|
int |
code() |
static JobProtos.RequestCode |
valueOf(int code) |
static JobProtos.RequestCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobProtos.RequestCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobProtos.RequestCode HEART_BEAT
public static final JobProtos.RequestCode SUBMIT_JOB
public static final JobProtos.RequestCode ASK_JOB_PROGRESS
public static final JobProtos.RequestCode PUSH_JOB
public static final JobProtos.RequestCode JOB_FINISHED
public static final JobProtos.RequestCode JOB_ASK
public static JobProtos.RequestCode[] values()
for (JobProtos.RequestCode c : JobProtos.RequestCode.values()) System.out.println(c);
public static JobProtos.RequestCode 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.RequestCode valueOf(int code)
public int code()
Copyright © 2014. All Rights Reserved.