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

Class Protos.SlaveInfo.Builder

  • All Implemented Interfaces:
    Protos.SlaveInfoOrBuilder
    Enclosing class:
    Protos.SlaveInfo


    public static final class Protos.SlaveInfo.Builder
    extends <any>
    implements Protos.SlaveInfoOrBuilder 
     Describes a slave. Note that the 'id' field is only available after
     a slave is registered with the master, and is made available here
     to facilitate re-registration.
     
    Protobuf type mesos.SlaveInfo
    • 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()
      • setField

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

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

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

        public final boolean isInitialized()
      • mergeFrom

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

        public Protos.SlaveInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value)
        required string hostname = 1;
      • getResourcesList

        public java.util.List<Protos.Resource> getResourcesList()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
        Specified by:
        getResourcesList in interface Protos.SlaveInfoOrBuilder
      • getResourcesCount

        public int getResourcesCount()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
        Specified by:
        getResourcesCount in interface Protos.SlaveInfoOrBuilder
      • getResources

        public Protos.Resource getResources(int index)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
        Specified by:
        getResources in interface Protos.SlaveInfoOrBuilder
      • setResources

        public Protos.SlaveInfo.Builder setResources(int index,
         Protos.Resource value)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • setResources

        public Protos.SlaveInfo.Builder setResources(int index,
         Protos.Resource.Builder builderForValue)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addResources

        public Protos.SlaveInfo.Builder addResources(Protos.Resource value)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addResources

        public Protos.SlaveInfo.Builder addResources(int index,
         Protos.Resource value)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addResources

        public Protos.SlaveInfo.Builder addResources(Protos.Resource.Builder builderForValue)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addResources

        public Protos.SlaveInfo.Builder addResources(int index,
         Protos.Resource.Builder builderForValue)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addAllResources

        public Protos.SlaveInfo.Builder addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • clearResources

        public Protos.SlaveInfo.Builder clearResources()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • removeResources

        public Protos.SlaveInfo.Builder removeResources(int index)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • getResourcesBuilder

        public Protos.Resource.Builder getResourcesBuilder(int index)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • getResourcesOrBuilder

        public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
        Specified by:
        getResourcesOrBuilder in interface Protos.SlaveInfoOrBuilder
      • getResourcesOrBuilderList

        public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
        Specified by:
        getResourcesOrBuilderList in interface Protos.SlaveInfoOrBuilder
      • addResourcesBuilder

        public Protos.Resource.Builder addResourcesBuilder()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • addResourcesBuilder

        public Protos.Resource.Builder addResourcesBuilder(int index)
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • getResourcesBuilderList

        public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
         The configured resources at the agent. This does not include any
         dynamic reservations or persistent volumes that may currently
         exist at the agent.
         
        repeated .mesos.Resource resources = 3;
      • removeAttributes

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

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

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

        public java.util.List<Protos.Attribute.Builder> getAttributesBuilderList()
        repeated .mesos.Attribute attributes = 5;
      • hasDomain

        public boolean hasDomain()
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
        Specified by:
        hasDomain in interface Protos.SlaveInfoOrBuilder
      • getDomain

        public Protos.DomainInfo getDomain()
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
        Specified by:
        getDomain in interface Protos.SlaveInfoOrBuilder
      • setDomain

        public Protos.SlaveInfo.Builder setDomain(Protos.DomainInfo value)
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
      • setDomain

        public Protos.SlaveInfo.Builder setDomain(Protos.DomainInfo.Builder builderForValue)
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
      • mergeDomain

        public Protos.SlaveInfo.Builder mergeDomain(Protos.DomainInfo value)
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
      • clearDomain

        public Protos.SlaveInfo.Builder clearDomain()
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
      • getDomainBuilder

        public Protos.DomainInfo.Builder getDomainBuilder()
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
      • getDomainOrBuilder

        public Protos.DomainInfoOrBuilder getDomainOrBuilder()
         The domain that this slave belongs to. If the slave's region
         differs from the master's region, it will not appear in resource
         offers to frameworks that have not enabled the REGION_AWARE
         capability.
         
        optional .mesos.DomainInfo domain = 10;
        Specified by:
        getDomainOrBuilder in interface Protos.SlaveInfoOrBuilder
      • hasCheckpoint

        public boolean hasCheckpoint()
         Slave checkpointing is always enabled in recent Mesos versions;
         the value of this field is ignored.
         TODO(joerg84): Remove checkpoint field after deprecation cycle starting
         with 0.27 (MESOS-2317).
         
        optional bool checkpoint = 7 [default = false];
        Specified by:
        hasCheckpoint in interface Protos.SlaveInfoOrBuilder
      • getCheckpoint

        public boolean getCheckpoint()
         Slave checkpointing is always enabled in recent Mesos versions;
         the value of this field is ignored.
         TODO(joerg84): Remove checkpoint field after deprecation cycle starting
         with 0.27 (MESOS-2317).
         
        optional bool checkpoint = 7 [default = false];
        Specified by:
        getCheckpoint in interface Protos.SlaveInfoOrBuilder
      • setCheckpoint

        public Protos.SlaveInfo.Builder setCheckpoint(boolean value)
         Slave checkpointing is always enabled in recent Mesos versions;
         the value of this field is ignored.
         TODO(joerg84): Remove checkpoint field after deprecation cycle starting
         with 0.27 (MESOS-2317).
         
        optional bool checkpoint = 7 [default = false];
      • clearCheckpoint

        public Protos.SlaveInfo.Builder clearCheckpoint()
         Slave checkpointing is always enabled in recent Mesos versions;
         the value of this field is ignored.
         TODO(joerg84): Remove checkpoint field after deprecation cycle starting
         with 0.27 (MESOS-2317).
         
        optional bool checkpoint = 7 [default = false];
      • setUnknownFields

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

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

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