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

Class Protos.MasterInfo.Builder

  • All Implemented Interfaces:
    Protos.MasterInfoOrBuilder
    Enclosing class:
    Protos.MasterInfo


    public static final class Protos.MasterInfo.Builder
    extends <any>
    implements Protos.MasterInfoOrBuilder 
     Describes a master. This will probably have more fields in the
     future which might be used, for example, to link a framework webui
     to a master webui.
     
    Protobuf type mesos.MasterInfo
    • 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.MasterInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field,
         java.lang.Object value)
      • setRepeatedField

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

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

        public final boolean isInitialized()
      • mergeFrom

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

        public boolean hasIp()
         The IP address (only IPv4) as a packed 4-bytes integer,
         stored in network order. Deprecated, use `address.ip` instead.
         
        required uint32 ip = 2;
        Specified by:
        hasIp in interface Protos.MasterInfoOrBuilder
      • getIp

        public int getIp()
         The IP address (only IPv4) as a packed 4-bytes integer,
         stored in network order. Deprecated, use `address.ip` instead.
         
        required uint32 ip = 2;
        Specified by:
        getIp in interface Protos.MasterInfoOrBuilder
      • setIp

        public Protos.MasterInfo.Builder setIp(int value)
         The IP address (only IPv4) as a packed 4-bytes integer,
         stored in network order. Deprecated, use `address.ip` instead.
         
        required uint32 ip = 2;
      • clearIp

        public Protos.MasterInfo.Builder clearIp()
         The IP address (only IPv4) as a packed 4-bytes integer,
         stored in network order. Deprecated, use `address.ip` instead.
         
        required uint32 ip = 2;
      • hasPort

        public boolean hasPort()
         The TCP port the Master is listening on for incoming
         HTTP requests; deprecated, use `address.port` instead.
         
        required uint32 port = 3 [default = 5050];
        Specified by:
        hasPort in interface Protos.MasterInfoOrBuilder
      • getPort

        public int getPort()
         The TCP port the Master is listening on for incoming
         HTTP requests; deprecated, use `address.port` instead.
         
        required uint32 port = 3 [default = 5050];
        Specified by:
        getPort in interface Protos.MasterInfoOrBuilder
      • setPort

        public Protos.MasterInfo.Builder setPort(int value)
         The TCP port the Master is listening on for incoming
         HTTP requests; deprecated, use `address.port` instead.
         
        required uint32 port = 3 [default = 5050];
      • clearPort

        public Protos.MasterInfo.Builder clearPort()
         The TCP port the Master is listening on for incoming
         HTTP requests; deprecated, use `address.port` instead.
         
        required uint32 port = 3 [default = 5050];
      • hasPid

        public boolean hasPid()
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
        Specified by:
        hasPid in interface Protos.MasterInfoOrBuilder
      • getPid

        public java.lang.String getPid()
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
        Specified by:
        getPid in interface Protos.MasterInfoOrBuilder
      • getPidBytes

        public com.google.protobuf.ByteString getPidBytes()
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
        Specified by:
        getPidBytes in interface Protos.MasterInfoOrBuilder
      • setPid

        public Protos.MasterInfo.Builder setPid(java.lang.String value)
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
      • clearPid

        public Protos.MasterInfo.Builder clearPid()
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
      • setPidBytes

        public Protos.MasterInfo.Builder setPidBytes(com.google.protobuf.ByteString value)
         In the default implementation, this will contain information
         about both the IP address, port and Master name; it should really
         not be relied upon by external tooling/frameworks and be
         considered an "internal" implementation field.
         
        optional string pid = 4;
      • hasHostname

        public boolean hasHostname()
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
        Specified by:
        hasHostname in interface Protos.MasterInfoOrBuilder
      • getHostname

        public java.lang.String getHostname()
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
        Specified by:
        getHostname in interface Protos.MasterInfoOrBuilder
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
        Specified by:
        getHostnameBytes in interface Protos.MasterInfoOrBuilder
      • setHostname

        public Protos.MasterInfo.Builder setHostname(java.lang.String value)
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
      • clearHostname

        public Protos.MasterInfo.Builder clearHostname()
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
      • setHostnameBytes

        public Protos.MasterInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value)
         The server's hostname, if available; it may be unreliable
         in environments where the DNS configuration does not resolve
         internal hostnames (eg, some public cloud providers).
         Deprecated, use `address.hostname` instead.
         
        optional string hostname = 5;
      • hasVersion

        public boolean hasVersion()
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
        Specified by:
        hasVersion in interface Protos.MasterInfoOrBuilder
      • getVersion

        public java.lang.String getVersion()
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
        Specified by:
        getVersion in interface Protos.MasterInfoOrBuilder
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
        Specified by:
        getVersionBytes in interface Protos.MasterInfoOrBuilder
      • setVersion

        public Protos.MasterInfo.Builder setVersion(java.lang.String value)
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
      • clearVersion

        public Protos.MasterInfo.Builder clearVersion()
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
      • setVersionBytes

        public Protos.MasterInfo.Builder setVersionBytes(com.google.protobuf.ByteString value)
         The running Master version, as a string; taken from the
         generated "master/version.hpp".
         
        optional string version = 6;
      • hasAddress

        public boolean hasAddress()
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
        Specified by:
        hasAddress in interface Protos.MasterInfoOrBuilder
      • getAddress

        public Protos.Address getAddress()
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
        Specified by:
        getAddress in interface Protos.MasterInfoOrBuilder
      • setAddress

        public Protos.MasterInfo.Builder setAddress(Protos.Address value)
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
      • setAddress

        public Protos.MasterInfo.Builder setAddress(Protos.Address.Builder builderForValue)
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
      • mergeAddress

        public Protos.MasterInfo.Builder mergeAddress(Protos.Address value)
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
      • clearAddress

        public Protos.MasterInfo.Builder clearAddress()
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
      • getAddressBuilder

        public Protos.Address.Builder getAddressBuilder()
         The full IP address (supports both IPv4 and IPv6 formats)
         and supersedes the use of `ip`, `port` and `hostname`.
         Since Mesos 0.24.
         
        optional .mesos.Address address = 7;
      • hasDomain

        public boolean hasDomain()
         The domain that this master belongs to. All masters in a Mesos
         cluster should belong to the same region.
         
        optional .mesos.DomainInfo domain = 8;
        Specified by:
        hasDomain in interface Protos.MasterInfoOrBuilder
      • setDomain

        public Protos.MasterInfo.Builder setDomain(Protos.DomainInfo value)
         The domain that this master belongs to. All masters in a Mesos
         cluster should belong to the same region.
         
        optional .mesos.DomainInfo domain = 8;
      • mergeDomain

        public Protos.MasterInfo.Builder mergeDomain(Protos.DomainInfo value)
         The domain that this master belongs to. All masters in a Mesos
         cluster should belong to the same region.
         
        optional .mesos.DomainInfo domain = 8;
      • clearDomain

        public Protos.MasterInfo.Builder clearDomain()
         The domain that this master belongs to. All masters in a Mesos
         cluster should belong to the same region.
         
        optional .mesos.DomainInfo domain = 8;
      • getDomainBuilder

        public Protos.DomainInfo.Builder getDomainBuilder()
         The domain that this master belongs to. All masters in a Mesos
         cluster should belong to the same region.
         
        optional .mesos.DomainInfo domain = 8;
      • clearCapabilities

        public Protos.MasterInfo.Builder clearCapabilities()
        repeated .mesos.MasterInfo.Capability capabilities = 9;
      • removeCapabilities

        public Protos.MasterInfo.Builder removeCapabilities(int index)
        repeated .mesos.MasterInfo.Capability capabilities = 9;
      • setUnknownFields

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

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

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