public static enum Protos.TaskStatus.Source extends java.lang.Enum<Protos.TaskStatus.Source>
Describes the source of the task status update.Protobuf enum
mesos.TaskStatus.Source
Enum Constant and Description |
---|
SOURCE_EXECUTOR
SOURCE_EXECUTOR = 2; |
SOURCE_MASTER
SOURCE_MASTER = 0; |
SOURCE_SLAVE
SOURCE_SLAVE = 1; |
Modifier and Type | Field and Description |
---|---|
static int |
SOURCE_EXECUTOR_VALUE
SOURCE_EXECUTOR = 2; |
static int |
SOURCE_MASTER_VALUE
SOURCE_MASTER = 0; |
static int |
SOURCE_SLAVE_VALUE
SOURCE_SLAVE = 1; |
Modifier and Type | Method and Description |
---|---|
static Protos.TaskStatus.Source |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static <any> |
internalGetValueMap() |
static Protos.TaskStatus.Source |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.TaskStatus.Source |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.TaskStatus.Source |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.TaskStatus.Source[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.TaskStatus.Source SOURCE_MASTER
SOURCE_MASTER = 0;
public static final Protos.TaskStatus.Source SOURCE_SLAVE
SOURCE_SLAVE = 1;
public static final Protos.TaskStatus.Source SOURCE_EXECUTOR
SOURCE_EXECUTOR = 2;
public static final int SOURCE_MASTER_VALUE
SOURCE_MASTER = 0;
public static final int SOURCE_SLAVE_VALUE
SOURCE_SLAVE = 1;
public static final int SOURCE_EXECUTOR_VALUE
SOURCE_EXECUTOR = 2;
public static Protos.TaskStatus.Source[] values()
for (Protos.TaskStatus.Source c : Protos.TaskStatus.Source.values()) System.out.println(c);
public static Protos.TaskStatus.Source 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 final int getNumber()
@Deprecated public static Protos.TaskStatus.Source valueOf(int value)
forNumber(int)
instead.public static Protos.TaskStatus.Source forNumber(int value)
public static <any> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Protos.TaskStatus.Source valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)