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| Modifier and Type | Method and Description |
|---|---|
Protos.SlaveInfo.Builder |
addAllAttributes(java.lang.Iterable<? extends Protos.Attribute> values)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
addAttributes(int index,
Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
addAttributes(int index,
Protos.Attribute value)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
addAttributes(Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
addAttributes(Protos.Attribute value)
repeated .mesos.Attribute attributes = 5; |
Protos.Attribute.Builder |
addAttributesBuilder()
repeated .mesos.Attribute attributes = 5; |
Protos.Attribute.Builder |
addAttributesBuilder(int index)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.SlaveInfo.Builder |
addResources(int index,
Protos.Resource.Builder builderForValue)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
addResources(int index,
Protos.Resource value)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
addResources(Protos.Resource.Builder builderForValue)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
addResources(Protos.Resource value)
The configured resources at the agent.
|
Protos.Resource.Builder |
addResourcesBuilder()
The configured resources at the agent.
|
Protos.Resource.Builder |
addResourcesBuilder(int index)
The configured resources at the agent.
|
Protos.SlaveInfo |
build() |
Protos.SlaveInfo |
buildPartial() |
Protos.SlaveInfo.Builder |
clear() |
Protos.SlaveInfo.Builder |
clearAttributes()
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
clearCheckpoint()
Slave checkpointing is always enabled in recent Mesos versions;
the value of this field is ignored.
|
Protos.SlaveInfo.Builder |
clearDomain()
The domain that this slave belongs to.
|
Protos.SlaveInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.SlaveInfo.Builder |
clearHostname()
required string hostname = 1; |
Protos.SlaveInfo.Builder |
clearId()
optional .mesos.SlaveID id = 6; |
Protos.SlaveInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.SlaveInfo.Builder |
clearPort()
optional int32 port = 8 [default = 5051]; |
Protos.SlaveInfo.Builder |
clearResources()
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
clone() |
Protos.Attribute |
getAttributes(int index)
repeated .mesos.Attribute attributes = 5; |
Protos.Attribute.Builder |
getAttributesBuilder(int index)
repeated .mesos.Attribute attributes = 5; |
java.util.List<Protos.Attribute.Builder> |
getAttributesBuilderList()
repeated .mesos.Attribute attributes = 5; |
int |
getAttributesCount()
repeated .mesos.Attribute attributes = 5; |
java.util.List<Protos.Attribute> |
getAttributesList()
repeated .mesos.Attribute attributes = 5; |
Protos.AttributeOrBuilder |
getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 5; |
java.util.List<? extends Protos.AttributeOrBuilder> |
getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 5; |
boolean |
getCheckpoint()
Slave checkpointing is always enabled in recent Mesos versions;
the value of this field is ignored.
|
Protos.SlaveInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.DomainInfo |
getDomain()
The domain that this slave belongs to.
|
Protos.DomainInfo.Builder |
getDomainBuilder()
The domain that this slave belongs to.
|
Protos.DomainInfoOrBuilder |
getDomainOrBuilder()
The domain that this slave belongs to.
|
java.lang.String |
getHostname()
required string hostname = 1; |
com.google.protobuf.ByteString |
getHostnameBytes()
required string hostname = 1; |
Protos.SlaveID |
getId()
optional .mesos.SlaveID id = 6; |
Protos.SlaveID.Builder |
getIdBuilder()
optional .mesos.SlaveID id = 6; |
Protos.SlaveIDOrBuilder |
getIdOrBuilder()
optional .mesos.SlaveID id = 6; |
int |
getPort()
optional int32 port = 8 [default = 5051]; |
Protos.Resource |
getResources(int index)
The configured resources at the agent.
|
Protos.Resource.Builder |
getResourcesBuilder(int index)
The configured resources at the agent.
|
java.util.List<Protos.Resource.Builder> |
getResourcesBuilderList()
The configured resources at the agent.
|
int |
getResourcesCount()
The configured resources at the agent.
|
java.util.List<Protos.Resource> |
getResourcesList()
The configured resources at the agent.
|
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
The configured resources at the agent.
|
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
The configured resources at the agent.
|
boolean |
hasCheckpoint()
Slave checkpointing is always enabled in recent Mesos versions;
the value of this field is ignored.
|
boolean |
hasDomain()
The domain that this slave belongs to.
|
boolean |
hasHostname()
required string hostname = 1; |
boolean |
hasId()
optional .mesos.SlaveID id = 6; |
boolean |
hasPort()
optional int32 port = 8 [default = 5051]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Protos.SlaveInfo.Builder |
mergeDomain(Protos.DomainInfo value)
The domain that this slave belongs to.
|
Protos.SlaveInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.SlaveInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.SlaveInfo.Builder |
mergeId(Protos.SlaveID value)
optional .mesos.SlaveID id = 6; |
Protos.SlaveInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.SlaveInfo.Builder |
removeAttributes(int index)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
removeResources(int index)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
setAttributes(int index,
Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
setAttributes(int index,
Protos.Attribute value)
repeated .mesos.Attribute attributes = 5; |
Protos.SlaveInfo.Builder |
setCheckpoint(boolean value)
Slave checkpointing is always enabled in recent Mesos versions;
the value of this field is ignored.
|
Protos.SlaveInfo.Builder |
setDomain(Protos.DomainInfo.Builder builderForValue)
The domain that this slave belongs to.
|
Protos.SlaveInfo.Builder |
setDomain(Protos.DomainInfo value)
The domain that this slave belongs to.
|
Protos.SlaveInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.SlaveInfo.Builder |
setHostname(java.lang.String value)
required string hostname = 1; |
Protos.SlaveInfo.Builder |
setHostnameBytes(com.google.protobuf.ByteString value)
required string hostname = 1; |
Protos.SlaveInfo.Builder |
setId(Protos.SlaveID.Builder builderForValue)
optional .mesos.SlaveID id = 6; |
Protos.SlaveInfo.Builder |
setId(Protos.SlaveID value)
optional .mesos.SlaveID id = 6; |
Protos.SlaveInfo.Builder |
setPort(int value)
optional int32 port = 8 [default = 5051]; |
Protos.SlaveInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.SlaveInfo.Builder |
setResources(int index,
Protos.Resource.Builder builderForValue)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
setResources(int index,
Protos.Resource value)
The configured resources at the agent.
|
Protos.SlaveInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.SlaveInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.SlaveInfo getDefaultInstanceForType()
public Protos.SlaveInfo build()
public Protos.SlaveInfo buildPartial()
public Protos.SlaveInfo.Builder clone()
public Protos.SlaveInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.SlaveInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.SlaveInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.SlaveInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.SlaveInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.SlaveInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.SlaveInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic boolean hasHostname()
required string hostname = 1;hasHostname in interface Protos.SlaveInfoOrBuilderpublic java.lang.String getHostname()
required string hostname = 1;getHostname in interface Protos.SlaveInfoOrBuilderpublic com.google.protobuf.ByteString getHostnameBytes()
required string hostname = 1;getHostnameBytes in interface Protos.SlaveInfoOrBuilderpublic Protos.SlaveInfo.Builder setHostname(java.lang.String value)
required string hostname = 1;public Protos.SlaveInfo.Builder clearHostname()
required string hostname = 1;public Protos.SlaveInfo.Builder setHostnameBytes(com.google.protobuf.ByteString value)
required string hostname = 1;public boolean hasPort()
optional int32 port = 8 [default = 5051];hasPort in interface Protos.SlaveInfoOrBuilderpublic int getPort()
optional int32 port = 8 [default = 5051];getPort in interface Protos.SlaveInfoOrBuilderpublic Protos.SlaveInfo.Builder setPort(int value)
optional int32 port = 8 [default = 5051];public Protos.SlaveInfo.Builder clearPort()
optional int32 port = 8 [default = 5051];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;getResourcesList in interface Protos.SlaveInfoOrBuilderpublic 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;getResourcesCount in interface Protos.SlaveInfoOrBuilderpublic 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;getResources in interface Protos.SlaveInfoOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getResourcesOrBuilder in interface Protos.SlaveInfoOrBuilderpublic 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;getResourcesOrBuilderList in interface Protos.SlaveInfoOrBuilderpublic 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;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;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;public java.util.List<Protos.Attribute> getAttributesList()
repeated .mesos.Attribute attributes = 5;getAttributesList in interface Protos.SlaveInfoOrBuilderpublic int getAttributesCount()
repeated .mesos.Attribute attributes = 5;getAttributesCount in interface Protos.SlaveInfoOrBuilderpublic Protos.Attribute getAttributes(int index)
repeated .mesos.Attribute attributes = 5;getAttributes in interface Protos.SlaveInfoOrBuilderpublic Protos.SlaveInfo.Builder setAttributes(int index, Protos.Attribute value)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder setAttributes(int index, Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder addAttributes(Protos.Attribute value)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder addAttributes(int index, Protos.Attribute value)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder addAttributes(Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder addAttributes(int index, Protos.Attribute.Builder builderForValue)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder addAllAttributes(java.lang.Iterable<? extends Protos.Attribute> values)
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder clearAttributes()
repeated .mesos.Attribute attributes = 5;public Protos.SlaveInfo.Builder removeAttributes(int index)
repeated .mesos.Attribute attributes = 5;public Protos.Attribute.Builder getAttributesBuilder(int index)
repeated .mesos.Attribute attributes = 5;public Protos.AttributeOrBuilder getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 5;getAttributesOrBuilder in interface Protos.SlaveInfoOrBuilderpublic java.util.List<? extends Protos.AttributeOrBuilder> getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 5;getAttributesOrBuilderList in interface Protos.SlaveInfoOrBuilderpublic Protos.Attribute.Builder addAttributesBuilder()
repeated .mesos.Attribute attributes = 5;public Protos.Attribute.Builder addAttributesBuilder(int index)
repeated .mesos.Attribute attributes = 5;public java.util.List<Protos.Attribute.Builder> getAttributesBuilderList()
repeated .mesos.Attribute attributes = 5;public boolean hasId()
optional .mesos.SlaveID id = 6;hasId in interface Protos.SlaveInfoOrBuilderpublic Protos.SlaveID getId()
optional .mesos.SlaveID id = 6;getId in interface Protos.SlaveInfoOrBuilderpublic Protos.SlaveInfo.Builder setId(Protos.SlaveID value)
optional .mesos.SlaveID id = 6;public Protos.SlaveInfo.Builder setId(Protos.SlaveID.Builder builderForValue)
optional .mesos.SlaveID id = 6;public Protos.SlaveInfo.Builder mergeId(Protos.SlaveID value)
optional .mesos.SlaveID id = 6;public Protos.SlaveInfo.Builder clearId()
optional .mesos.SlaveID id = 6;public Protos.SlaveID.Builder getIdBuilder()
optional .mesos.SlaveID id = 6;public Protos.SlaveIDOrBuilder getIdOrBuilder()
optional .mesos.SlaveID id = 6;getIdOrBuilder in interface Protos.SlaveInfoOrBuilderpublic 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;hasDomain in interface Protos.SlaveInfoOrBuilderpublic 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;getDomain in interface Protos.SlaveInfoOrBuilderpublic 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;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;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;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;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;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;getDomainOrBuilder in interface Protos.SlaveInfoOrBuilderpublic 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];hasCheckpoint in interface Protos.SlaveInfoOrBuilderpublic 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];getCheckpoint in interface Protos.SlaveInfoOrBuilderpublic 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];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];public final Protos.SlaveInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.SlaveInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)