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

Class Protos.Offer.Builder

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


    public static final class Protos.Offer.Builder
    extends <any>
    implements Protos.OfferOrBuilder 
     Describes some resources available on a slave. An offer only
     contains resources from a single slave.
     
    Protobuf type mesos.Offer
    • 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.Offer getDefaultInstanceForType()
      • setField

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

        public Protos.Offer.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      • clearOneof

        public Protos.Offer.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      • setRepeatedField

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

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

        public final boolean isInitialized()
      • mergeFrom

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

        public Protos.Offer.Builder clearFrameworkId()
        required .mesos.FrameworkID framework_id = 2;
      • setHostname

        public Protos.Offer.Builder setHostname(java.lang.String value)
        required string hostname = 4;
      • setHostnameBytes

        public Protos.Offer.Builder setHostnameBytes(com.google.protobuf.ByteString value)
        required string hostname = 4;
      • 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
      • clearUrl

        public Protos.Offer.Builder clearUrl()
         URL for reaching the slave running on the host.
         
        optional .mesos.URL url = 8;
      • getUrlBuilder

        public Protos.URL.Builder getUrlBuilder()
         URL for reaching the slave running on the host.
         
        optional .mesos.URL url = 8;
      • hasDomain

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

        public Protos.Offer.Builder clearDomain()
         The domain of the slave.
         
        optional .mesos.DomainInfo domain = 11;
      • getDomainBuilder

        public Protos.DomainInfo.Builder getDomainBuilder()
         The domain of the slave.
         
        optional .mesos.DomainInfo domain = 11;
      • clearResources

        public Protos.Offer.Builder clearResources()
        repeated .mesos.Resource resources = 5;
      • removeResources

        public Protos.Offer.Builder removeResources(int index)
        repeated .mesos.Resource resources = 5;
      • getResourcesBuilder

        public Protos.Resource.Builder getResourcesBuilder(int index)
        repeated .mesos.Resource resources = 5;
      • addResourcesBuilder

        public Protos.Resource.Builder addResourcesBuilder(int index)
        repeated .mesos.Resource resources = 5;
      • getResourcesBuilderList

        public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
        repeated .mesos.Resource resources = 5;
      • clearAttributes

        public Protos.Offer.Builder clearAttributes()
        repeated .mesos.Attribute attributes = 7;
      • removeAttributes

        public Protos.Offer.Builder removeAttributes(int index)
        repeated .mesos.Attribute attributes = 7;
      • getAttributesBuilder

        public Protos.Attribute.Builder getAttributesBuilder(int index)
        repeated .mesos.Attribute attributes = 7;
      • addAttributesBuilder

        public Protos.Attribute.Builder addAttributesBuilder(int index)
        repeated .mesos.Attribute attributes = 7;
      • getAttributesBuilderList

        public java.util.List<Protos.Attribute.Builder> getAttributesBuilderList()
        repeated .mesos.Attribute attributes = 7;
      • 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
      • setExecutorIds

        public Protos.Offer.Builder setExecutorIds(int index,
         Protos.ExecutorID value)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • addExecutorIds

        public Protos.Offer.Builder addExecutorIds(int index,
         Protos.ExecutorID value)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • addAllExecutorIds

        public Protos.Offer.Builder addAllExecutorIds(java.lang.Iterable<? extends Protos.ExecutorID> values)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • clearExecutorIds

        public Protos.Offer.Builder clearExecutorIds()
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • removeExecutorIds

        public Protos.Offer.Builder removeExecutorIds(int index)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • getExecutorIdsBuilder

        public Protos.ExecutorID.Builder getExecutorIdsBuilder(int index)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • addExecutorIdsBuilder

        public Protos.ExecutorID.Builder addExecutorIdsBuilder()
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • addExecutorIdsBuilder

        public Protos.ExecutorID.Builder addExecutorIdsBuilder(int index)
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • getExecutorIdsBuilderList

        public java.util.List<Protos.ExecutorID.Builder> getExecutorIdsBuilderList()
         Executors of the same framework running on this agent.
         
        repeated .mesos.ExecutorID executor_ids = 6;
      • 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
      • setUnavailability

        public Protos.Offer.Builder setUnavailability(Protos.Unavailability value)
         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;
      • setUnavailability

        public Protos.Offer.Builder setUnavailability(Protos.Unavailability.Builder builderForValue)
         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;
      • mergeUnavailability

        public Protos.Offer.Builder mergeUnavailability(Protos.Unavailability value)
         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;
      • clearUnavailability

        public Protos.Offer.Builder clearUnavailability()
         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;
      • getUnavailabilityBuilder

        public Protos.Unavailability.Builder getUnavailabilityBuilder()
         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;
      • 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
      • setAllocationInfo

        public Protos.Offer.Builder setAllocationInfo(Protos.Resource.AllocationInfo value)
         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;
      • setAllocationInfo

        public Protos.Offer.Builder setAllocationInfo(Protos.Resource.AllocationInfo.Builder builderForValue)
         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;
      • mergeAllocationInfo

        public Protos.Offer.Builder mergeAllocationInfo(Protos.Resource.AllocationInfo value)
         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;
      • clearAllocationInfo

        public Protos.Offer.Builder clearAllocationInfo()
         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;
      • getAllocationInfoBuilder

        public Protos.Resource.AllocationInfo.Builder getAllocationInfoBuilder()
         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;
      • 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
      • setUnknownFields

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

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

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