public static final class Protos.SlaveInfo extends com.google.protobuf.GeneratedMessageV3 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 | Class and Description |
---|---|
static class |
Protos.SlaveInfo.Builder
Describes a slave.
|
static class |
Protos.SlaveInfo.Capability
Protobuf type
mesos.SlaveInfo.Capability |
static interface |
Protos.SlaveInfo.CapabilityOrBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
CHECKPOINT_FIELD_NUMBER |
static int |
DOMAIN_FIELD_NUMBER |
static int |
HOSTNAME_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
PORT_FIELD_NUMBER |
static int |
RESOURCES_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Protos.Attribute |
getAttributes(int index)
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.
|
static Protos.SlaveInfo |
getDefaultInstance() |
Protos.SlaveInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DomainInfo |
getDomain()
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.SlaveIDOrBuilder |
getIdOrBuilder()
optional .mesos.SlaveID id = 6; |
<any> |
getParserForType() |
int |
getPort()
optional int32 port = 8 [default = 5051]; |
Protos.Resource |
getResources(int index)
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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.
|
int |
hashCode() |
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() |
static Protos.SlaveInfo.Builder |
newBuilder() |
static Protos.SlaveInfo.Builder |
newBuilder(Protos.SlaveInfo prototype) |
Protos.SlaveInfo.Builder |
newBuilderForType() |
protected Protos.SlaveInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.SlaveInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.SlaveInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.SlaveInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.SlaveInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.SlaveInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.SlaveInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.SlaveInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.SlaveInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.SlaveInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.SlaveInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.SlaveInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int HOSTNAME_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
public static final int CHECKPOINT_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasHostname()
required string hostname = 1;
hasHostname
in interface Protos.SlaveInfoOrBuilder
public java.lang.String getHostname()
required string hostname = 1;
getHostname
in interface Protos.SlaveInfoOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
required string hostname = 1;
getHostnameBytes
in interface Protos.SlaveInfoOrBuilder
public boolean hasPort()
optional int32 port = 8 [default = 5051];
hasPort
in interface Protos.SlaveInfoOrBuilder
public int getPort()
optional int32 port = 8 [default = 5051];
getPort
in interface Protos.SlaveInfoOrBuilder
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.SlaveInfoOrBuilder
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;
getResourcesOrBuilderList
in interface Protos.SlaveInfoOrBuilder
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;
getResourcesCount
in interface Protos.SlaveInfoOrBuilder
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;
getResources
in interface Protos.SlaveInfoOrBuilder
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.SlaveInfoOrBuilder
public java.util.List<Protos.Attribute> getAttributesList()
repeated .mesos.Attribute attributes = 5;
getAttributesList
in interface Protos.SlaveInfoOrBuilder
public java.util.List<? extends Protos.AttributeOrBuilder> getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 5;
getAttributesOrBuilderList
in interface Protos.SlaveInfoOrBuilder
public int getAttributesCount()
repeated .mesos.Attribute attributes = 5;
getAttributesCount
in interface Protos.SlaveInfoOrBuilder
public Protos.Attribute getAttributes(int index)
repeated .mesos.Attribute attributes = 5;
getAttributes
in interface Protos.SlaveInfoOrBuilder
public Protos.AttributeOrBuilder getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 5;
getAttributesOrBuilder
in interface Protos.SlaveInfoOrBuilder
public boolean hasId()
optional .mesos.SlaveID id = 6;
hasId
in interface Protos.SlaveInfoOrBuilder
public Protos.SlaveID getId()
optional .mesos.SlaveID id = 6;
getId
in interface Protos.SlaveInfoOrBuilder
public Protos.SlaveIDOrBuilder getIdOrBuilder()
optional .mesos.SlaveID id = 6;
getIdOrBuilder
in interface Protos.SlaveInfoOrBuilder
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;
hasDomain
in interface Protos.SlaveInfoOrBuilder
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;
getDomain
in interface Protos.SlaveInfoOrBuilder
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.SlaveInfoOrBuilder
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];
hasCheckpoint
in interface Protos.SlaveInfoOrBuilder
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];
getCheckpoint
in interface Protos.SlaveInfoOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.SlaveInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.SlaveInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.SlaveInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.SlaveInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.SlaveInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.SlaveInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.SlaveInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.SlaveInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.SlaveInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.SlaveInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.SlaveInfo.Builder newBuilderForType()
public static Protos.SlaveInfo.Builder newBuilder()
public static Protos.SlaveInfo.Builder newBuilder(Protos.SlaveInfo prototype)
public Protos.SlaveInfo.Builder toBuilder()
protected Protos.SlaveInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.SlaveInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.SlaveInfo getDefaultInstanceForType()