public static enum Protos.SlaveInfo.Capability.Type extends java.lang.Enum<Protos.SlaveInfo.Capability.Type>
mesos.SlaveInfo.Capability.Type
Enum Constant and Description |
---|
AGENT_DRAINING
This expresses the ability for the agent to automatically drain tasks
in preparation for operator maintenance.
|
AGENT_OPERATION_FEEDBACK
This expresses the ability of the agent to handle operation feedback
for operations on agent default resources.
|
HIERARCHICAL_ROLE
This expresses the ability for the agent to be able to launch
tasks, reserve resources, and create volumes using resources
allocated to a 'hierarchical-role'.
|
MULTI_ROLE
This expresses the ability for the agent to be able
to launch tasks of a 'multi-role' framework.
|
RESERVATION_REFINEMENT
This capability has three effects for an agent.
|
RESIZE_VOLUME
This expresses the capability for the agent to handle persistent volume
resize operations safely.
|
RESOURCE_PROVIDER
This expresses the ability for the agent to handle resource
provider related operations.
|
TASK_RESOURCE_LIMITS
This expresses the ability for the agent to launch tasks which specify
resource limits for CPU and/or memory.
|
UNKNOWN
This must be the first enum value in this list, to
ensure that if 'type' is not set, the default value
is UNKNOWN.
|
Modifier and Type | Field and Description |
---|---|
static int |
AGENT_DRAINING_VALUE
This expresses the ability for the agent to automatically drain tasks
in preparation for operator maintenance.
|
static int |
AGENT_OPERATION_FEEDBACK_VALUE
This expresses the ability of the agent to handle operation feedback
for operations on agent default resources.
|
static int |
HIERARCHICAL_ROLE_VALUE
This expresses the ability for the agent to be able to launch
tasks, reserve resources, and create volumes using resources
allocated to a 'hierarchical-role'.
|
static int |
MULTI_ROLE_VALUE
This expresses the ability for the agent to be able
to launch tasks of a 'multi-role' framework.
|
static int |
RESERVATION_REFINEMENT_VALUE
This capability has three effects for an agent.
|
static int |
RESIZE_VOLUME_VALUE
This expresses the capability for the agent to handle persistent volume
resize operations safely.
|
static int |
RESOURCE_PROVIDER_VALUE
This expresses the ability for the agent to handle resource
provider related operations.
|
static int |
TASK_RESOURCE_LIMITS_VALUE
This expresses the ability for the agent to launch tasks which specify
resource limits for CPU and/or memory.
|
static int |
UNKNOWN_VALUE
This must be the first enum value in this list, to
ensure that if 'type' is not set, the default value
is UNKNOWN.
|
Modifier and Type | Method and Description |
---|---|
static Protos.SlaveInfo.Capability.Type |
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.SlaveInfo.Capability.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Protos.SlaveInfo.Capability.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Protos.SlaveInfo.Capability.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Protos.SlaveInfo.Capability.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Protos.SlaveInfo.Capability.Type UNKNOWN
This must be the first enum value in this list, to ensure that if 'type' is not set, the default value is UNKNOWN. This enables enum values to be added in a backwards-compatible way. See: MESOS-4997.
UNKNOWN = 0;
public static final Protos.SlaveInfo.Capability.Type MULTI_ROLE
This expresses the ability for the agent to be able to launch tasks of a 'multi-role' framework.
MULTI_ROLE = 1;
public static final Protos.SlaveInfo.Capability.Type HIERARCHICAL_ROLE
This expresses the ability for the agent to be able to launch tasks, reserve resources, and create volumes using resources allocated to a 'hierarchical-role'. NOTE: This capability is required specifically for creating volumes because a hierchical role includes '/' (slashes) in them. Agents with this capability know to transform the '/' (slashes) into ' ' (spaces).
HIERARCHICAL_ROLE = 2;
public static final Protos.SlaveInfo.Capability.Type RESERVATION_REFINEMENT
This capability has three effects for an agent. (1) The format of the checkpointed resources, and the resources reported to master. These resources are reported in the "pre-reservation-refinement" format if none of the resources have refined reservations. If any of the resources have refined reservations, they are reported in the "post-reservation-refinement" format. The purpose is to allow downgrading of an agent as well as communication with a pre-1.4.0 master until the reservation refinement feature is actually used. See the 'Resource Format' section for more details. (2) The format of the resources reported by the HTTP endpoints. For resources reported by agent endpoints, the "pre-reservation-refinement" format is "injected" if possible. That is, resources without refined reservations will have the `Resource.role` and `Resource.reservation` set, whereas resources with refined reservations will not. See the 'Resource Format' section for more details. (3) The ability for the agent to launch tasks, reserve resources, and create volumes using resources that have refined reservations. See `ReservationInfo.reservations` section for more details. NOTE: Resources are said to have refined reservations if it uses the `Resource.reservations` field, and `Resource.reservations_size() > 1`.
RESERVATION_REFINEMENT = 3;
public static final Protos.SlaveInfo.Capability.Type RESOURCE_PROVIDER
This expresses the ability for the agent to handle resource provider related operations. This includes the following: (1) The ability to report resources that are provided by some local resource providers through the resource provider API. (2) The ability to provide operation feedback. This also means that this capability is a prerequisite for full support of feedback for operations on agent default resources. If an agent has the mandatory AGENT_OPERATION_FEEDBACK capability set but not the RESOURCE_PROVIDER capability, then operations on agent default resources which request feedback will not be allowed.
RESOURCE_PROVIDER = 4;
public static final Protos.SlaveInfo.Capability.Type RESIZE_VOLUME
This expresses the capability for the agent to handle persistent volume resize operations safely. This capability is turned on by default.
RESIZE_VOLUME = 5;
public static final Protos.SlaveInfo.Capability.Type AGENT_OPERATION_FEEDBACK
This expresses the ability of the agent to handle operation feedback for operations on agent default resources. Note that full support for this feature also requires the RESOURCE_PROVIDER capability; if you would like the agent to handle feedback for operations on agent default resources, the RESOURCE_PROVIDER capability should be set as well.
AGENT_OPERATION_FEEDBACK = 6;
public static final Protos.SlaveInfo.Capability.Type AGENT_DRAINING
This expresses the ability for the agent to automatically drain tasks in preparation for operator maintenance. This capability is required.
AGENT_DRAINING = 7;
public static final Protos.SlaveInfo.Capability.Type TASK_RESOURCE_LIMITS
This expresses the ability for the agent to launch tasks which specify resource limits for CPU and/or memory.
TASK_RESOURCE_LIMITS = 8;
public static final int UNKNOWN_VALUE
This must be the first enum value in this list, to ensure that if 'type' is not set, the default value is UNKNOWN. This enables enum values to be added in a backwards-compatible way. See: MESOS-4997.
UNKNOWN = 0;
public static final int MULTI_ROLE_VALUE
This expresses the ability for the agent to be able to launch tasks of a 'multi-role' framework.
MULTI_ROLE = 1;
public static final int HIERARCHICAL_ROLE_VALUE
This expresses the ability for the agent to be able to launch tasks, reserve resources, and create volumes using resources allocated to a 'hierarchical-role'. NOTE: This capability is required specifically for creating volumes because a hierchical role includes '/' (slashes) in them. Agents with this capability know to transform the '/' (slashes) into ' ' (spaces).
HIERARCHICAL_ROLE = 2;
public static final int RESERVATION_REFINEMENT_VALUE
This capability has three effects for an agent. (1) The format of the checkpointed resources, and the resources reported to master. These resources are reported in the "pre-reservation-refinement" format if none of the resources have refined reservations. If any of the resources have refined reservations, they are reported in the "post-reservation-refinement" format. The purpose is to allow downgrading of an agent as well as communication with a pre-1.4.0 master until the reservation refinement feature is actually used. See the 'Resource Format' section for more details. (2) The format of the resources reported by the HTTP endpoints. For resources reported by agent endpoints, the "pre-reservation-refinement" format is "injected" if possible. That is, resources without refined reservations will have the `Resource.role` and `Resource.reservation` set, whereas resources with refined reservations will not. See the 'Resource Format' section for more details. (3) The ability for the agent to launch tasks, reserve resources, and create volumes using resources that have refined reservations. See `ReservationInfo.reservations` section for more details. NOTE: Resources are said to have refined reservations if it uses the `Resource.reservations` field, and `Resource.reservations_size() > 1`.
RESERVATION_REFINEMENT = 3;
public static final int RESOURCE_PROVIDER_VALUE
This expresses the ability for the agent to handle resource provider related operations. This includes the following: (1) The ability to report resources that are provided by some local resource providers through the resource provider API. (2) The ability to provide operation feedback. This also means that this capability is a prerequisite for full support of feedback for operations on agent default resources. If an agent has the mandatory AGENT_OPERATION_FEEDBACK capability set but not the RESOURCE_PROVIDER capability, then operations on agent default resources which request feedback will not be allowed.
RESOURCE_PROVIDER = 4;
public static final int RESIZE_VOLUME_VALUE
This expresses the capability for the agent to handle persistent volume resize operations safely. This capability is turned on by default.
RESIZE_VOLUME = 5;
public static final int AGENT_OPERATION_FEEDBACK_VALUE
This expresses the ability of the agent to handle operation feedback for operations on agent default resources. Note that full support for this feature also requires the RESOURCE_PROVIDER capability; if you would like the agent to handle feedback for operations on agent default resources, the RESOURCE_PROVIDER capability should be set as well.
AGENT_OPERATION_FEEDBACK = 6;
public static final int AGENT_DRAINING_VALUE
This expresses the ability for the agent to automatically drain tasks in preparation for operator maintenance. This capability is required.
AGENT_DRAINING = 7;
public static final int TASK_RESOURCE_LIMITS_VALUE
This expresses the ability for the agent to launch tasks which specify resource limits for CPU and/or memory.
TASK_RESOURCE_LIMITS = 8;
public static Protos.SlaveInfo.Capability.Type[] values()
for (Protos.SlaveInfo.Capability.Type c : Protos.SlaveInfo.Capability.Type.values()) System.out.println(c);
public static Protos.SlaveInfo.Capability.Type 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.SlaveInfo.Capability.Type valueOf(int value)
forNumber(int)
instead.public static Protos.SlaveInfo.Capability.Type 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.SlaveInfo.Capability.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)