This project has retired. For details please refer to its Attic page.
Protos.Resource.ReservationInfo.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.ReservationInfo.Builder

  • All Implemented Interfaces:
    Protos.Resource.ReservationInfoOrBuilder
    Enclosing class:
    Protos.Resource.ReservationInfo


    public static final class Protos.Resource.ReservationInfo.Builder
    extends <any>
    implements Protos.Resource.ReservationInfoOrBuilder 
     Describes a reservation. A static reservation is set by the operator on
     the command-line and they are immutable without agent restart. A dynamic
     reservation is made by an operator via the '/reserve' HTTP endpoint
     or by a framework via the offer cycle by sending back an
     'Offer::Operation::Reserve' message.
     NOTE: We currently do not allow frameworks with role "*" to make dynamic
     reservations.
     
    Protobuf type mesos.Resource.ReservationInfo
    • 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()
      • isInitialized

        public final boolean isInitialized()
      • mergeFrom

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

        public boolean hasType()
         The type of this reservation.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional .mesos.Resource.ReservationInfo.Type type = 4;
        Specified by:
        hasType in interface Protos.Resource.ReservationInfoOrBuilder
      • clearType

        public Protos.Resource.ReservationInfo.Builder clearType()
         The type of this reservation.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional .mesos.Resource.ReservationInfo.Type type = 4;
      • hasRole

        public boolean hasRole()
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
        Specified by:
        hasRole in interface Protos.Resource.ReservationInfoOrBuilder
      • getRole

        public java.lang.String getRole()
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
        Specified by:
        getRole in interface Protos.Resource.ReservationInfoOrBuilder
      • getRoleBytes

        public com.google.protobuf.ByteString getRoleBytes()
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
        Specified by:
        getRoleBytes in interface Protos.Resource.ReservationInfoOrBuilder
      • setRole

        public Protos.Resource.ReservationInfo.Builder setRole(java.lang.String value)
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
      • clearRole

        public Protos.Resource.ReservationInfo.Builder clearRole()
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
      • setRoleBytes

        public Protos.Resource.ReservationInfo.Builder setRoleBytes(com.google.protobuf.ByteString value)
         The role to which this reservation is made for.
         NOTE: This field must not be set for `Resource.reservation`.
         See the 'Resource Format' section for more details.
         
        optional string role = 3;
      • hasPrincipal

        public boolean hasPrincipal()
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
        Specified by:
        hasPrincipal in interface Protos.Resource.ReservationInfoOrBuilder
      • getPrincipal

        public java.lang.String getPrincipal()
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
        Specified by:
        getPrincipal in interface Protos.Resource.ReservationInfoOrBuilder
      • getPrincipalBytes

        public com.google.protobuf.ByteString getPrincipalBytes()
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
        Specified by:
        getPrincipalBytes in interface Protos.Resource.ReservationInfoOrBuilder
      • setPrincipal

        public Protos.Resource.ReservationInfo.Builder setPrincipal(java.lang.String value)
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
      • clearPrincipal

        public Protos.Resource.ReservationInfo.Builder clearPrincipal()
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
      • setPrincipalBytes

        public Protos.Resource.ReservationInfo.Builder setPrincipalBytes(com.google.protobuf.ByteString value)
         Indicates the principal, if any, of the framework or operator
         that reserved this resource. If reserved by a framework, the
         field should match the `FrameworkInfo.principal`. It is used in
         conjunction with the `UnreserveResources` ACL to determine
         whether the entity attempting to unreserve this resource is
         permitted to do so.
         
        optional string principal = 1;
      • hasLabels

        public boolean hasLabels()
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
        Specified by:
        hasLabels in interface Protos.Resource.ReservationInfoOrBuilder
      • getLabels

        public Protos.Labels getLabels()
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
        Specified by:
        getLabels in interface Protos.Resource.ReservationInfoOrBuilder
      • setLabels

        public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels value)
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
      • setLabels

        public Protos.Resource.ReservationInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
      • mergeLabels

        public Protos.Resource.ReservationInfo.Builder mergeLabels(Protos.Labels value)
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
      • clearLabels

        public Protos.Resource.ReservationInfo.Builder clearLabels()
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
      • getLabelsBuilder

        public Protos.Labels.Builder getLabelsBuilder()
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
      • getLabelsOrBuilder

        public Protos.LabelsOrBuilder getLabelsOrBuilder()
         Labels are free-form key value pairs that can be used to
         associate arbitrary metadata with a reserved resource. For
         example, frameworks can use labels to identify the intended
         purpose for a portion of the resources the framework has
         reserved at a given slave. Labels should not contain duplicate
         key-value pairs.
         
        optional .mesos.Labels labels = 2;
        Specified by:
        getLabelsOrBuilder in interface Protos.Resource.ReservationInfoOrBuilder
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

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