public static final class Protos.ResourceProviderInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.ResourceProviderInfoOrBuilder
Describes a resource provider. Note that the 'id' field is only available after a resource provider is registered with the master, and is made available here to facilitate re-registration.Protobuf type
mesos.ResourceProviderInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.ResourceProviderInfo.Builder
Describes a resource provider.
|
static class |
Protos.ResourceProviderInfo.Storage
Storage resource provider related information.
|
static interface |
Protos.ResourceProviderInfo.StorageOrBuilder |
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
DEFAULT_RESERVATIONS_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
STORAGE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Protos.Attribute |
getAttributes(int index)
repeated .mesos.Attribute attributes = 2; |
int |
getAttributesCount()
repeated .mesos.Attribute attributes = 2; |
java.util.List<Protos.Attribute> |
getAttributesList()
repeated .mesos.Attribute attributes = 2; |
Protos.AttributeOrBuilder |
getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 2; |
java.util.List<? extends Protos.AttributeOrBuilder> |
getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 2; |
static Protos.ResourceProviderInfo |
getDefaultInstance() |
Protos.ResourceProviderInfo |
getDefaultInstanceForType() |
Protos.Resource.ReservationInfo |
getDefaultReservations(int index)
The stack of default reservations.
|
int |
getDefaultReservationsCount()
The stack of default reservations.
|
java.util.List<Protos.Resource.ReservationInfo> |
getDefaultReservationsList()
The stack of default reservations.
|
Protos.Resource.ReservationInfoOrBuilder |
getDefaultReservationsOrBuilder(int index)
The stack of default reservations.
|
java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> |
getDefaultReservationsOrBuilderList()
The stack of default reservations.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ResourceProviderID |
getId()
optional .mesos.ResourceProviderID id = 1; |
Protos.ResourceProviderIDOrBuilder |
getIdOrBuilder()
optional .mesos.ResourceProviderID id = 1; |
java.lang.String |
getName()
The name of the resource provider.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the resource provider.
|
<any> |
getParserForType() |
int |
getSerializedSize() |
Protos.ResourceProviderInfo.Storage |
getStorage()
EXPERIMENTAL.
|
Protos.ResourceProviderInfo.StorageOrBuilder |
getStorageOrBuilder()
EXPERIMENTAL.
|
java.lang.String |
getType()
The type of the resource provider.
|
com.google.protobuf.ByteString |
getTypeBytes()
The type of the resource provider.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasId()
optional .mesos.ResourceProviderID id = 1; |
boolean |
hasName()
The name of the resource provider.
|
boolean |
hasStorage()
EXPERIMENTAL.
|
boolean |
hasType()
The type of the resource provider.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.ResourceProviderInfo.Builder |
newBuilder() |
static Protos.ResourceProviderInfo.Builder |
newBuilder(Protos.ResourceProviderInfo prototype) |
Protos.ResourceProviderInfo.Builder |
newBuilderForType() |
protected Protos.ResourceProviderInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.ResourceProviderInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.ResourceProviderInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ResourceProviderInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ResourceProviderInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.ResourceProviderInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ResourceProviderInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.ResourceProviderInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ResourceProviderInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.ResourceProviderInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ResourceProviderInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.ResourceProviderInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int ID_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int DEFAULT_RESERVATIONS_FIELD_NUMBER
public static final int STORAGE_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 hasId()
optional .mesos.ResourceProviderID id = 1;hasId in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.ResourceProviderID getId()
optional .mesos.ResourceProviderID id = 1;getId in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.ResourceProviderIDOrBuilder getIdOrBuilder()
optional .mesos.ResourceProviderID id = 1;getIdOrBuilder in interface Protos.ResourceProviderInfoOrBuilderpublic java.util.List<Protos.Attribute> getAttributesList()
repeated .mesos.Attribute attributes = 2;getAttributesList in interface Protos.ResourceProviderInfoOrBuilderpublic java.util.List<? extends Protos.AttributeOrBuilder> getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 2;getAttributesOrBuilderList in interface Protos.ResourceProviderInfoOrBuilderpublic int getAttributesCount()
repeated .mesos.Attribute attributes = 2;getAttributesCount in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.Attribute getAttributes(int index)
repeated .mesos.Attribute attributes = 2;getAttributes in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.AttributeOrBuilder getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 2;getAttributesOrBuilder in interface Protos.ResourceProviderInfoOrBuilderpublic boolean hasType()
The type of the resource provider. This uniquely identifies a
resource provider implementation. For instance:
org.apache.mesos.rp.local.storage
Please follow to Java package naming convention
(https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
to avoid conflicts on type names.
required string type = 3;hasType in interface Protos.ResourceProviderInfoOrBuilderpublic java.lang.String getType()
The type of the resource provider. This uniquely identifies a
resource provider implementation. For instance:
org.apache.mesos.rp.local.storage
Please follow to Java package naming convention
(https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
to avoid conflicts on type names.
required string type = 3;getType in interface Protos.ResourceProviderInfoOrBuilderpublic com.google.protobuf.ByteString getTypeBytes()
The type of the resource provider. This uniquely identifies a
resource provider implementation. For instance:
org.apache.mesos.rp.local.storage
Please follow to Java package naming convention
(https://en.wikipedia.org/wiki/Java_package#Package_naming_conventions)
to avoid conflicts on type names.
required string type = 3;getTypeBytes in interface Protos.ResourceProviderInfoOrBuilderpublic boolean hasName()
The name of the resource provider. There could be multiple instances of a type of resource provider. The name field is used to distinguish these instances. It should be a legal Java identifier (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html) to avoid conflicts on concatenation of type and name.
required string name = 4;hasName in interface Protos.ResourceProviderInfoOrBuilderpublic java.lang.String getName()
The name of the resource provider. There could be multiple instances of a type of resource provider. The name field is used to distinguish these instances. It should be a legal Java identifier (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html) to avoid conflicts on concatenation of type and name.
required string name = 4;getName in interface Protos.ResourceProviderInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the resource provider. There could be multiple instances of a type of resource provider. The name field is used to distinguish these instances. It should be a legal Java identifier (https://docs.oracle.com/javase/tutorial/java/nutsandbolts/variables.html) to avoid conflicts on concatenation of type and name.
required string name = 4;getNameBytes in interface Protos.ResourceProviderInfoOrBuilderpublic java.util.List<Protos.Resource.ReservationInfo> getDefaultReservationsList()
The stack of default reservations. If this field is not empty, it indicates that resources from this resource provider are reserved by default, except for the resources that have been reserved or unreserved through operations. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current one.
repeated .mesos.Resource.ReservationInfo default_reservations = 5;getDefaultReservationsList in interface Protos.ResourceProviderInfoOrBuilderpublic java.util.List<? extends Protos.Resource.ReservationInfoOrBuilder> getDefaultReservationsOrBuilderList()
The stack of default reservations. If this field is not empty, it indicates that resources from this resource provider are reserved by default, except for the resources that have been reserved or unreserved through operations. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current one.
repeated .mesos.Resource.ReservationInfo default_reservations = 5;getDefaultReservationsOrBuilderList in interface Protos.ResourceProviderInfoOrBuilderpublic int getDefaultReservationsCount()
The stack of default reservations. If this field is not empty, it indicates that resources from this resource provider are reserved by default, except for the resources that have been reserved or unreserved through operations. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current one.
repeated .mesos.Resource.ReservationInfo default_reservations = 5;getDefaultReservationsCount in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.Resource.ReservationInfo getDefaultReservations(int index)
The stack of default reservations. If this field is not empty, it indicates that resources from this resource provider are reserved by default, except for the resources that have been reserved or unreserved through operations. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current one.
repeated .mesos.Resource.ReservationInfo default_reservations = 5;getDefaultReservations in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.Resource.ReservationInfoOrBuilder getDefaultReservationsOrBuilder(int index)
The stack of default reservations. If this field is not empty, it indicates that resources from this resource provider are reserved by default, except for the resources that have been reserved or unreserved through operations. The first `ReservationInfo` may have type `STATIC` or `DYNAMIC`, but the rest must have `DYNAMIC`. One can create a new reservation on top of an existing one by pushing a new `ReservationInfo` to the back. The last `ReservationInfo` in this stack is the "current" reservation. The new reservation's role must be a child of the current one.
repeated .mesos.Resource.ReservationInfo default_reservations = 5;getDefaultReservationsOrBuilder in interface Protos.ResourceProviderInfoOrBuilderpublic boolean hasStorage()
EXPERIMENTAL.
optional .mesos.ResourceProviderInfo.Storage storage = 6;hasStorage in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.ResourceProviderInfo.Storage getStorage()
EXPERIMENTAL.
optional .mesos.ResourceProviderInfo.Storage storage = 6;getStorage in interface Protos.ResourceProviderInfoOrBuilderpublic Protos.ResourceProviderInfo.StorageOrBuilder getStorageOrBuilder()
EXPERIMENTAL.
optional .mesos.ResourceProviderInfo.Storage storage = 6;getStorageOrBuilder in interface Protos.ResourceProviderInfoOrBuilderpublic final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
java.io.IOExceptionpublic int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.ResourceProviderInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ResourceProviderInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ResourceProviderInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ResourceProviderInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ResourceProviderInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ResourceProviderInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ResourceProviderInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ResourceProviderInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ResourceProviderInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ResourceProviderInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.ResourceProviderInfo.Builder newBuilderForType()
public static Protos.ResourceProviderInfo.Builder newBuilder()
public static Protos.ResourceProviderInfo.Builder newBuilder(Protos.ResourceProviderInfo prototype)
public Protos.ResourceProviderInfo.Builder toBuilder()
protected Protos.ResourceProviderInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.ResourceProviderInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.ResourceProviderInfo getDefaultInstanceForType()