This project has retired. For details please refer to its Attic page.
Protos.Resource.ReservationInfo
JavaScript is disabled on your browser.
Skip navigation links
org.apache.mesos

Class Protos.Resource.ReservationInfo

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


    public static final class Protos.Resource.ReservationInfo
    extends com.google.protobuf.GeneratedMessageV3
    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
    • Field Detail

      • PARSER

        @Deprecated
        public static final <any> PARSER
        Deprecated.
    • Method Detail

      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      • 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
      • 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
      • 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
      • 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
      • 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
      • isInitialized

        public final boolean isInitialized()
      • writeTo

        public void writeTo(com.google.protobuf.CodedOutputStream output)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
      • equals

        public boolean equals(java.lang.Object obj)
      • hashCode

        public int hashCode()
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(java.nio.ByteBuffer data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.Resource.ReservationInfo parseDelimitedFrom(java.io.InputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Protos.Resource.ReservationInfo parseDelimitedFrom(java.io.InputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.CodedInputStream input)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Protos.Resource.ReservationInfo parseFrom(com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws java.io.IOException
        Throws:
        java.io.IOException
      • parser

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
Skip navigation links

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