This project has retired. For details please refer to its Attic page.
Protos.Resource.Builder
JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.apache.mesos

Class Protos.Resource.Builder

  • All Implemented Interfaces:
    Protos.ResourceOrBuilder
    Enclosing class:
    Protos.Resource


    public static final class Protos.Resource.Builder
    extends <any>
    implements Protos.ResourceOrBuilder 
     Describes a resource from a resource provider. The `name` field is
     a string like "cpus" or "mem" that indicates which kind of resource
     this is; the rest of the fields describe the properties of the
     resource. A resource can take on one of three types: scalar
     (double), a list of finite and discrete ranges (e.g., [1-10,
     20-30]), or a set of items. A resource is described using the
     standard protocol buffer "union" trick.
     Note that "disk" and "mem" resources are scalar values expressed in
     megabytes. Fractional "cpus" values are allowed (e.g., "0.5"),
     which correspond to partial shares of a CPU.
     
    Protobuf type mesos.Resource
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      • getDefaultInstanceForType

        public Protos.Resource getDefaultInstanceForType()
      • setField

        public Protos.Resource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
         java.lang.Object value)
      • setRepeatedField

        public Protos.Resource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
         int index,
         java.lang.Object value)
      • addRepeatedField

        public Protos.Resource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
         java.lang.Object value)
      • isInitialized

        public final boolean isInitialized()
      • mergeFrom

        public Protos.Resource.Builder mergeFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • hasProviderId

        public boolean hasProviderId()
         Specified if the resource comes from a particular resource provider.
         
        optional .mesos.ResourceProviderID provider_id = 12;
        Specified by:
        hasProviderId in interface Protos.ResourceOrBuilder
      • clearProviderId

        public Protos.Resource.Builder clearProviderId()
         Specified if the resource comes from a particular resource provider.
         
        optional .mesos.ResourceProviderID provider_id = 12;
      • getProviderIdBuilder

        public Protos.ResourceProviderID.Builder getProviderIdBuilder()
         Specified if the resource comes from a particular resource provider.
         
        optional .mesos.ResourceProviderID provider_id = 12;
      • setNameBytes

        public Protos.Resource.Builder setNameBytes(com.google.protobuf.ByteString value)
        required string name = 1;
      • hasRole

        @Deprecated
        public boolean hasRole()
        Deprecated.
         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];
        Specified by:
        hasRole in interface Protos.ResourceOrBuilder
      • getRole

        @Deprecated
        public java.lang.String getRole()
        Deprecated.
         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];
        Specified by:
        getRole in interface Protos.ResourceOrBuilder
      • getRoleBytes

        @Deprecated
        public com.google.protobuf.ByteString getRoleBytes()
        Deprecated.
         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];
        Specified by:
        getRoleBytes in interface Protos.ResourceOrBuilder
      • setRole

        @Deprecated
        public Protos.Resource.Builder setRole(java.lang.String value)
        Deprecated.
         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];
      • clearRole

        @Deprecated
        public Protos.Resource.Builder clearRole()
        Deprecated.
         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];
      • setRoleBytes

        @Deprecated
        public Protos.Resource.Builder setRoleBytes(com.google.protobuf.ByteString value)
        Deprecated.
         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];
      • clearAllocationInfo

        public Protos.Resource.Builder clearAllocationInfo()
        optional .mesos.Resource.AllocationInfo allocation_info = 11;
      • hasReservation

        public 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;
        Specified by:
        hasReservation in interface Protos.ResourceOrBuilder
      • getReservation

        public 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;
        Specified by:
        getReservation in interface Protos.ResourceOrBuilder
      • setReservation

        public Protos.Resource.Builder setReservation(Protos.Resource.ReservationInfo value)
         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;
      • setReservation

        public Protos.Resource.Builder setReservation(Protos.Resource.ReservationInfo.Builder builderForValue)
         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;
      • mergeReservation

        public Protos.Resource.Builder mergeReservation(Protos.Resource.ReservationInfo value)
         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;
      • clearReservation

        public Protos.Resource.Builder clearReservation()
         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;
      • getReservationBuilder

        public Protos.Resource.ReservationInfo.Builder getReservationBuilder()
         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;
      • getReservationOrBuilder

        public 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;
        Specified by:
        getReservationOrBuilder in interface Protos.ResourceOrBuilder
      • getReservationsList

        public 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;
        Specified by:
        getReservationsList in interface Protos.ResourceOrBuilder
      • getReservationsCount

        public 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;
        Specified by:
        getReservationsCount in interface Protos.ResourceOrBuilder
      • getReservations

        public 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;
        Specified by:
        getReservations in interface Protos.ResourceOrBuilder
      • setReservations

        public Protos.Resource.Builder setReservations(int index,
         Protos.Resource.ReservationInfo value)
         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;
      • setReservations

        public Protos.Resource.Builder setReservations(int index,
         Protos.Resource.ReservationInfo.Builder builderForValue)
         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;
      • addReservations

        public Protos.Resource.Builder addReservations(Protos.Resource.ReservationInfo value)
         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;
      • addReservations

        public Protos.Resource.Builder addReservations(int index,
         Protos.Resource.ReservationInfo value)
         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;
      • addReservations

        public Protos.Resource.Builder addReservations(Protos.Resource.ReservationInfo.Builder builderForValue)
         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;
      • addReservations

        public Protos.Resource.Builder addReservations(int index,
         Protos.Resource.ReservationInfo.Builder builderForValue)
         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;
      • addAllReservations

        public Protos.Resource.Builder addAllReservations(java.lang.Iterable<? extends Protos.Resource.ReservationInfo> values)
         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;
      • clearReservations

        public Protos.Resource.Builder clearReservations()
         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;
      • removeReservations

        public Protos.Resource.Builder removeReservations(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;
      • getReservationsBuilder

        public Protos.Resource.ReservationInfo.Builder getReservationsBuilder(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;
      • getReservationsOrBuilder

        public 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;
        Specified by:
        getReservationsOrBuilder in interface Protos.ResourceOrBuilder
      • getReservationsOrBuilderList

        public 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;
        Specified by:
        getReservationsOrBuilderList in interface Protos.ResourceOrBuilder
      • addReservationsBuilder

        public Protos.Resource.ReservationInfo.Builder addReservationsBuilder()
         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;
      • addReservationsBuilder

        public Protos.Resource.ReservationInfo.Builder addReservationsBuilder(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;
      • getReservationsBuilderList

        public java.util.List<Protos.Resource.ReservationInfo.Builder> getReservationsBuilderList()
         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;
      • hasRevocable

        public 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;
        Specified by:
        hasRevocable in interface Protos.ResourceOrBuilder
      • getRevocable

        public 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;
        Specified by:
        getRevocable in interface Protos.ResourceOrBuilder
      • setRevocable

        public Protos.Resource.Builder setRevocable(Protos.Resource.RevocableInfo value)
         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;
      • setRevocable

        public Protos.Resource.Builder setRevocable(Protos.Resource.RevocableInfo.Builder builderForValue)
         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;
      • mergeRevocable

        public Protos.Resource.Builder mergeRevocable(Protos.Resource.RevocableInfo value)
         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;
      • clearRevocable

        public Protos.Resource.Builder clearRevocable()
         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;
      • getRevocableBuilder

        public Protos.Resource.RevocableInfo.Builder getRevocableBuilder()
         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;
      • getRevocableOrBuilder

        public 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;
        Specified by:
        getRevocableOrBuilder in interface Protos.ResourceOrBuilder
      • hasShared

        public 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;
        Specified by:
        hasShared in interface Protos.ResourceOrBuilder
      • getShared

        public 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;
        Specified by:
        getShared in interface Protos.ResourceOrBuilder
      • setShared

        public Protos.Resource.Builder setShared(Protos.Resource.SharedInfo value)
         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;
      • setShared

        public Protos.Resource.Builder setShared(Protos.Resource.SharedInfo.Builder builderForValue)
         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;
      • mergeShared

        public Protos.Resource.Builder mergeShared(Protos.Resource.SharedInfo value)
         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;
      • clearShared

        public Protos.Resource.Builder clearShared()
         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;
      • getSharedBuilder

        public Protos.Resource.SharedInfo.Builder getSharedBuilder()
         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;
      • getSharedOrBuilder

        public 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;
        Specified by:
        getSharedOrBuilder in interface Protos.ResourceOrBuilder
      • setUnknownFields

        public final Protos.Resource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      • mergeUnknownFields

        public final Protos.Resource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /