public static enum Protos.MachineInfo.Mode extends java.lang.Enum<Protos.MachineInfo.Mode>
Describes the several states that a machine can be in. A `Mode` applies to a machine and to all associated slaves on the machine.Protobuf enum
mesos.MachineInfo.Mode
Enum Constant and Description |
---|
DOWN
In this mode, a machine is not running any tasks and will not offer
any of its resources.
|
DRAINING
In this mode, all slaves on the machine are expected to cooperate with
frameworks to drain resources.
|
UP
In this mode, a machine is behaving normally;
offering resources, executing tasks, etc.
|
Modifier and Type | Field and Description |
---|---|
static int |
DOWN_VALUE
In this mode, a machine is not running any tasks and will not offer
any of its resources.
|
static int |
DRAINING_VALUE
In this mode, all slaves on the machine are expected to cooperate with
frameworks to drain resources.
|
static int |
UP_VALUE
In this mode, a machine is behaving normally;
offering resources, executing tasks, etc.
|
Modifier and Type | Method and Description |
---|---|
static Protos.MachineInfo.Mode |
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.MachineInfo.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.MachineInfo.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.MachineInfo.Mode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.MachineInfo.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.MachineInfo.Mode UP
In this mode, a machine is behaving normally; offering resources, executing tasks, etc.
UP = 1;
public static final Protos.MachineInfo.Mode DRAINING
In this mode, all slaves on the machine are expected to cooperate with frameworks to drain resources. In general, draining is done ahead of a pending `unavailability`. The resources should be drained so as to maximize utilization prior to the maintenance but without knowingly violating the frameworks' requirements.
DRAINING = 2;
public static final Protos.MachineInfo.Mode DOWN
In this mode, a machine is not running any tasks and will not offer any of its resources. Slaves on the machine will not be allowed to register with the master.
DOWN = 3;
public static final int UP_VALUE
In this mode, a machine is behaving normally; offering resources, executing tasks, etc.
UP = 1;
public static final int DRAINING_VALUE
In this mode, all slaves on the machine are expected to cooperate with frameworks to drain resources. In general, draining is done ahead of a pending `unavailability`. The resources should be drained so as to maximize utilization prior to the maintenance but without knowingly violating the frameworks' requirements.
DRAINING = 2;
public static final int DOWN_VALUE
In this mode, a machine is not running any tasks and will not offer any of its resources. Slaves on the machine will not be allowed to register with the master.
DOWN = 3;
public static Protos.MachineInfo.Mode[] values()
for (Protos.MachineInfo.Mode c : Protos.MachineInfo.Mode.values()) System.out.println(c);
public static Protos.MachineInfo.Mode 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.MachineInfo.Mode valueOf(int value)
forNumber(int)
instead.public static Protos.MachineInfo.Mode 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.MachineInfo.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)