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

Class Protos.Offer

  • All Implemented Interfaces:
    Protos.OfferOrBuilder
    Enclosing class:
    Protos


    public static final class Protos.Offer
    extends com.google.protobuf.GeneratedMessageV3
    implements Protos.OfferOrBuilder 
     Describes some resources available on a slave. An offer only
     contains resources from a single slave.
     
    Protobuf type mesos.Offer
    • Field Detail

      • FRAMEWORK_ID_FIELD_NUMBER

        public static final int FRAMEWORK_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ATTRIBUTES_FIELD_NUMBER

        public static final int ATTRIBUTES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXECUTOR_IDS_FIELD_NUMBER

        public static final int EXECUTOR_IDS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • UNAVAILABILITY_FIELD_NUMBER

        public static final int UNAVAILABILITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOCATION_INFO_FIELD_NUMBER

        public static final int ALLOCATION_INFO_FIELD_NUMBER
        See Also:
        Constant Field Values
      • 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()
      • hasUrl

        public boolean hasUrl()
         URL for reaching the slave running on the host.
         
        optional .mesos.URL url = 8;
        Specified by:
        hasUrl in interface Protos.OfferOrBuilder
      • hasDomain

        public boolean hasDomain()
         The domain of the slave.
         
        optional .mesos.DomainInfo domain = 11;
        Specified by:
        hasDomain in interface Protos.OfferOrBuilder
      • getExecutorIdsCount

        public int getExecutorIdsCount()
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
        Specified by:
        getExecutorIdsCount in interface Protos.OfferOrBuilder
      • hasUnavailability

        public boolean hasUnavailability()
         Signifies that the resources in this Offer may be unavailable during
         the given interval. Any tasks launched using these resources may be
         killed when the interval arrives. For example, these resources may be
         part of a planned maintenance schedule.
         This field only provides information about a planned unavailability.
         The unavailability interval may not necessarily start at exactly this
         interval, nor last for exactly the duration of this interval.
         The unavailability may also be forever! See comments in
         `Unavailability` for more details.
         
        optional .mesos.Unavailability unavailability = 9;
        Specified by:
        hasUnavailability in interface Protos.OfferOrBuilder
      • getUnavailability

        public Protos.Unavailability getUnavailability()
         Signifies that the resources in this Offer may be unavailable during
         the given interval. Any tasks launched using these resources may be
         killed when the interval arrives. For example, these resources may be
         part of a planned maintenance schedule.
         This field only provides information about a planned unavailability.
         The unavailability interval may not necessarily start at exactly this
         interval, nor last for exactly the duration of this interval.
         The unavailability may also be forever! See comments in
         `Unavailability` for more details.
         
        optional .mesos.Unavailability unavailability = 9;
        Specified by:
        getUnavailability in interface Protos.OfferOrBuilder
      • getUnavailabilityOrBuilder

        public Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder()
         Signifies that the resources in this Offer may be unavailable during
         the given interval. Any tasks launched using these resources may be
         killed when the interval arrives. For example, these resources may be
         part of a planned maintenance schedule.
         This field only provides information about a planned unavailability.
         The unavailability interval may not necessarily start at exactly this
         interval, nor last for exactly the duration of this interval.
         The unavailability may also be forever! See comments in
         `Unavailability` for more details.
         
        optional .mesos.Unavailability unavailability = 9;
        Specified by:
        getUnavailabilityOrBuilder in interface Protos.OfferOrBuilder
      • hasAllocationInfo

        public boolean hasAllocationInfo()
         An offer represents resources allocated to *one* of the
         roles managed by the scheduler. (Therefore, each
         `Offer.resources[i].allocation_info` will match the
         top level `Offer.allocation_info`).
         
        optional .mesos.Resource.AllocationInfo allocation_info = 10;
        Specified by:
        hasAllocationInfo in interface Protos.OfferOrBuilder
      • getAllocationInfo

        public Protos.Resource.AllocationInfo getAllocationInfo()
         An offer represents resources allocated to *one* of the
         roles managed by the scheduler. (Therefore, each
         `Offer.resources[i].allocation_info` will match the
         top level `Offer.allocation_info`).
         
        optional .mesos.Resource.AllocationInfo allocation_info = 10;
        Specified by:
        getAllocationInfo in interface Protos.OfferOrBuilder
      • getAllocationInfoOrBuilder

        public Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder()
         An offer represents resources allocated to *one* of the
         roles managed by the scheduler. (Therefore, each
         `Offer.resources[i].allocation_info` will match the
         top level `Offer.allocation_info`).
         
        optional .mesos.Resource.AllocationInfo allocation_info = 10;
        Specified by:
        getAllocationInfoOrBuilder in interface Protos.OfferOrBuilder
      • 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.Offer parseFrom(java.nio.ByteBuffer data)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Protos.Offer 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.Offer parseFrom(byte[] data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

        protected Protos.Offer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      • getDefaultInstance

        public static Protos.Offer getDefaultInstance()
      • parser

        public static <any> parser()
      • getParserForType

        public <any> getParserForType()
      • getDefaultInstanceForType

        public Protos.Offer getDefaultInstanceForType()
Skip navigation links

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