public static interface Protos.ResourceOrBuilder
Modifier and Type | Method and Description |
---|---|
Protos.Resource.AllocationInfo |
getAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.AllocationInfoOrBuilder |
getAllocationInfoOrBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
Protos.Resource.DiskInfo |
getDisk()
optional .mesos.Resource.DiskInfo disk = 7; |
Protos.Resource.DiskInfoOrBuilder |
getDiskOrBuilder()
optional .mesos.Resource.DiskInfo disk = 7; |
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
Protos.ResourceProviderID |
getProviderId()
Specified if the resource comes from a particular resource provider.
|
Protos.ResourceProviderIDOrBuilder |
getProviderIdOrBuilder()
Specified if the resource comes from a particular resource provider.
|
Protos.Value.Ranges |
getRanges()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Value.RangesOrBuilder |
getRangesOrBuilder()
optional .mesos.Value.Ranges ranges = 4; |
Protos.Resource.ReservationInfo |
getReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.ReservationInfoOrBuilder |
getReservationOrBuilder()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
Protos.Resource.ReservationInfo |
getReservations(int index)
The stack of reservations.
|
int |
getReservationsCount()
The stack of reservations.
|
java.util.List<Protos.Resource.ReservationInfo> |
getReservationsList()
The stack of reservations.
|
Protos.Resource.ReservationInfoOrBuilder |
getReservationsOrBuilder(int index)
The stack of reservations.
|
java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> |
getReservationsOrBuilderList()
The stack of reservations.
|
Protos.Resource.RevocableInfo |
getRevocable()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
Protos.Resource.RevocableInfoOrBuilder |
getRevocableOrBuilder()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
java.lang.String |
getRole()
Deprecated.
|
com.google.protobuf.ByteString |
getRoleBytes()
Deprecated.
|
Protos.Value.Scalar |
getScalar()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Value.ScalarOrBuilder |
getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3; |
Protos.Value.Set |
getSet()
optional .mesos.Value.Set set = 5; |
Protos.Value.SetOrBuilder |
getSetOrBuilder()
optional .mesos.Value.Set set = 5; |
Protos.Resource.SharedInfo |
getShared()
If this is set, the resources are shared, i.e.
|
Protos.Resource.SharedInfoOrBuilder |
getSharedOrBuilder()
If this is set, the resources are shared, i.e.
|
Protos.Value.Type |
getType()
required .mesos.Value.Type type = 2; |
boolean |
hasAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11; |
boolean |
hasDisk()
optional .mesos.Resource.DiskInfo disk = 7; |
boolean |
hasName()
required string name = 1; |
boolean |
hasProviderId()
Specified if the resource comes from a particular resource provider.
|
boolean |
hasRanges()
optional .mesos.Value.Ranges ranges = 4; |
boolean |
hasReservation()
If this is set, this resource was dynamically reserved by an
operator or a framework.
|
boolean |
hasRevocable()
If this is set, the resources are revocable, i.e., any tasks or
executors launched using these resources could get preempted or
throttled at any time.
|
boolean |
hasRole()
Deprecated.
|
boolean |
hasScalar()
optional .mesos.Value.Scalar scalar = 3; |
boolean |
hasSet()
optional .mesos.Value.Set set = 5; |
boolean |
hasShared()
If this is set, the resources are shared, i.e.
|
boolean |
hasType()
required .mesos.Value.Type type = 2; |
boolean hasProviderId()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;
Protos.ResourceProviderID getProviderId()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;
Protos.ResourceProviderIDOrBuilder getProviderIdOrBuilder()
Specified if the resource comes from a particular resource provider.
optional .mesos.ResourceProviderID provider_id = 12;
boolean hasName()
required string name = 1;
java.lang.String getName()
required string name = 1;
com.google.protobuf.ByteString getNameBytes()
required string name = 1;
boolean hasType()
required .mesos.Value.Type type = 2;
Protos.Value.Type getType()
required .mesos.Value.Type type = 2;
boolean hasScalar()
optional .mesos.Value.Scalar scalar = 3;
Protos.Value.Scalar getScalar()
optional .mesos.Value.Scalar scalar = 3;
Protos.Value.ScalarOrBuilder getScalarOrBuilder()
optional .mesos.Value.Scalar scalar = 3;
boolean hasRanges()
optional .mesos.Value.Ranges ranges = 4;
Protos.Value.Ranges getRanges()
optional .mesos.Value.Ranges ranges = 4;
Protos.Value.RangesOrBuilder getRangesOrBuilder()
optional .mesos.Value.Ranges ranges = 4;
boolean hasSet()
optional .mesos.Value.Set set = 5;
Protos.Value.Set getSet()
optional .mesos.Value.Set set = 5;
Protos.Value.SetOrBuilder getSetOrBuilder()
optional .mesos.Value.Set set = 5;
@Deprecated boolean hasRole()
The role that this resource is reserved for. If "*", this indicates that the resource is unreserved. Otherwise, the resource will only be offered to frameworks that belong to this role. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];
@Deprecated java.lang.String getRole()
The role that this resource is reserved for. If "*", this indicates that the resource is unreserved. Otherwise, the resource will only be offered to frameworks that belong to this role. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];
@Deprecated com.google.protobuf.ByteString getRoleBytes()
The role that this resource is reserved for. If "*", this indicates that the resource is unreserved. Otherwise, the resource will only be offered to frameworks that belong to this role. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional string role = 6 [default = "*", deprecated = true];
boolean hasAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11;
Protos.Resource.AllocationInfo getAllocationInfo()
optional .mesos.Resource.AllocationInfo allocation_info = 11;
Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder()
optional .mesos.Resource.AllocationInfo allocation_info = 11;
boolean hasReservation()
If this is set, this resource was dynamically reserved by an operator or a framework. Otherwise, this resource is either unreserved or statically reserved by an operator via the --resources flag. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;
Protos.Resource.ReservationInfo getReservation()
If this is set, this resource was dynamically reserved by an operator or a framework. Otherwise, this resource is either unreserved or statically reserved by an operator via the --resources flag. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;
Protos.Resource.ReservationInfoOrBuilder getReservationOrBuilder()
If this is set, this resource was dynamically reserved by an operator or a framework. Otherwise, this resource is either unreserved or statically reserved by an operator via the --resources flag. NOTE: Frameworks must not set this field if `reservations` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate once `reservations` is no longer experimental.
optional .mesos.Resource.ReservationInfo reservation = 8;
java.util.List<Protos.Resource.ReservationInfo> getReservationsList()
The stack of reservations. If this field is empty, it indicates that this resource is unreserved. Otherwise, the resource is reserved. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current reservation's role. NOTE: Frameworks must not set this field if `reservation` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;
Protos.Resource.ReservationInfo getReservations(int index)
The stack of reservations. If this field is empty, it indicates that this resource is unreserved. Otherwise, the resource is reserved. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current reservation's role. NOTE: Frameworks must not set this field if `reservation` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;
int getReservationsCount()
The stack of reservations. If this field is empty, it indicates that this resource is unreserved. Otherwise, the resource is reserved. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current reservation's role. NOTE: Frameworks must not set this field if `reservation` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;
java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> getReservationsOrBuilderList()
The stack of reservations. If this field is empty, it indicates that this resource is unreserved. Otherwise, the resource is reserved. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current reservation's role. NOTE: Frameworks must not set this field if `reservation` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;
Protos.Resource.ReservationInfoOrBuilder getReservationsOrBuilder(int index)
The stack of reservations. If this field is empty, it indicates that this resource is unreserved. Otherwise, the resource is reserved. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current reservation's role. NOTE: Frameworks must not set this field if `reservation` is set. See the 'Resource Format' section for more details. TODO(mpark): Deprecate `role` and `reservation` once this is stable.
repeated .mesos.Resource.ReservationInfo reservations = 13;
boolean hasDisk()
optional .mesos.Resource.DiskInfo disk = 7;
Protos.Resource.DiskInfo getDisk()
optional .mesos.Resource.DiskInfo disk = 7;
Protos.Resource.DiskInfoOrBuilder getDiskOrBuilder()
optional .mesos.Resource.DiskInfo disk = 7;
boolean hasRevocable()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;
Protos.Resource.RevocableInfo getRevocable()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;
Protos.Resource.RevocableInfoOrBuilder getRevocableOrBuilder()
If this is set, the resources are revocable, i.e., any tasks or executors launched using these resources could get preempted or throttled at any time. This could be used by frameworks to run best effort tasks that do not need strict uptime or performance guarantees. Note that if this is set, 'disk' or 'reservation' cannot be set.
optional .mesos.Resource.RevocableInfo revocable = 9;
boolean hasShared()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;
Protos.Resource.SharedInfo getShared()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;
Protos.Resource.SharedInfoOrBuilder getSharedOrBuilder()
If this is set, the resources are shared, i.e. multiple tasks can be launched using this resource and all of them shall refer to the same physical resource on the cluster. Note that only persistent volumes can be shared currently. NOTE: Different shared resources must be uniquely identifiable. This currently holds as persistent volume should have unique `id` (this is not validated for enforced though).
optional .mesos.Resource.SharedInfo shared = 10;