public static final class Protos.Offer extends com.google.protobuf.GeneratedMessageV3 implements Protos.OfferOrBuilder
Describes some resources available on a slave. An offer only contains resources from a single slave.Protobuf type
mesos.Offer
Modifier and Type | Class and Description |
---|---|
static class |
Protos.Offer.Builder
Describes some resources available on a slave.
|
static class |
Protos.Offer.Operation
Defines an operation that can be performed against offers.
|
static interface |
Protos.Offer.OperationOrBuilder |
Modifier and Type | Field and Description |
---|---|
static int |
ALLOCATION_INFO_FIELD_NUMBER |
static int |
ATTRIBUTES_FIELD_NUMBER |
static int |
DOMAIN_FIELD_NUMBER |
static int |
EXECUTOR_IDS_FIELD_NUMBER |
static int |
FRAMEWORK_ID_FIELD_NUMBER |
static int |
HOSTNAME_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RESOURCES_FIELD_NUMBER |
static int |
SLAVE_ID_FIELD_NUMBER |
static int |
UNAVAILABILITY_FIELD_NUMBER |
static int |
URL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Protos.Resource.AllocationInfo |
getAllocationInfo()
An offer represents resources allocated to *one* of the
roles managed by the scheduler.
|
Protos.Resource.AllocationInfoOrBuilder |
getAllocationInfoOrBuilder()
An offer represents resources allocated to *one* of the
roles managed by the scheduler.
|
Protos.Attribute |
getAttributes(int index)
repeated .mesos.Attribute attributes = 7; |
int |
getAttributesCount()
repeated .mesos.Attribute attributes = 7; |
java.util.List<Protos.Attribute> |
getAttributesList()
repeated .mesos.Attribute attributes = 7; |
Protos.AttributeOrBuilder |
getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 7; |
java.util.List<? extends Protos.AttributeOrBuilder> |
getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 7; |
static Protos.Offer |
getDefaultInstance() |
Protos.Offer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DomainInfo |
getDomain()
The domain of the slave.
|
Protos.DomainInfoOrBuilder |
getDomainOrBuilder()
The domain of the slave.
|
Protos.ExecutorID |
getExecutorIds(int index)
Executors of the same framework running on this agent.
|
int |
getExecutorIdsCount()
Executors of the same framework running on this agent.
|
java.util.List<Protos.ExecutorID> |
getExecutorIdsList()
Executors of the same framework running on this agent.
|
Protos.ExecutorIDOrBuilder |
getExecutorIdsOrBuilder(int index)
Executors of the same framework running on this agent.
|
java.util.List<? extends Protos.ExecutorIDOrBuilder> |
getExecutorIdsOrBuilderList()
Executors of the same framework running on this agent.
|
Protos.FrameworkID |
getFrameworkId()
required .mesos.FrameworkID framework_id = 2; |
Protos.FrameworkIDOrBuilder |
getFrameworkIdOrBuilder()
required .mesos.FrameworkID framework_id = 2; |
java.lang.String |
getHostname()
required string hostname = 4; |
com.google.protobuf.ByteString |
getHostnameBytes()
required string hostname = 4; |
Protos.OfferID |
getId()
required .mesos.OfferID id = 1; |
Protos.OfferIDOrBuilder |
getIdOrBuilder()
required .mesos.OfferID id = 1; |
<any> |
getParserForType() |
Protos.Resource |
getResources(int index)
repeated .mesos.Resource resources = 5; |
int |
getResourcesCount()
repeated .mesos.Resource resources = 5; |
java.util.List<Protos.Resource> |
getResourcesList()
repeated .mesos.Resource resources = 5; |
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 5; |
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
repeated .mesos.Resource resources = 5; |
int |
getSerializedSize() |
Protos.SlaveID |
getSlaveId()
required .mesos.SlaveID slave_id = 3; |
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 3; |
Protos.Unavailability |
getUnavailability()
Signifies that the resources in this Offer may be unavailable during
the given interval.
|
Protos.UnavailabilityOrBuilder |
getUnavailabilityOrBuilder()
Signifies that the resources in this Offer may be unavailable during
the given interval.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.URL |
getUrl()
URL for reaching the slave running on the host.
|
Protos.URLOrBuilder |
getUrlOrBuilder()
URL for reaching the slave running on the host.
|
boolean |
hasAllocationInfo()
An offer represents resources allocated to *one* of the
roles managed by the scheduler.
|
boolean |
hasDomain()
The domain of the slave.
|
boolean |
hasFrameworkId()
required .mesos.FrameworkID framework_id = 2; |
int |
hashCode() |
boolean |
hasHostname()
required string hostname = 4; |
boolean |
hasId()
required .mesos.OfferID id = 1; |
boolean |
hasSlaveId()
required .mesos.SlaveID slave_id = 3; |
boolean |
hasUnavailability()
Signifies that the resources in this Offer may be unavailable during
the given interval.
|
boolean |
hasUrl()
URL for reaching the slave running on the host.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.Offer.Builder |
newBuilder() |
static Protos.Offer.Builder |
newBuilder(Protos.Offer prototype) |
Protos.Offer.Builder |
newBuilderForType() |
protected Protos.Offer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.Offer |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.Offer |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer |
parseFrom(java.nio.ByteBuffer data) |
static Protos.Offer |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.Offer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.Offer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.Offer |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.Offer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int ID_FIELD_NUMBER
public static final int FRAMEWORK_ID_FIELD_NUMBER
public static final int SLAVE_ID_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
public static final int DOMAIN_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
public static final int EXECUTOR_IDS_FIELD_NUMBER
public static final int UNAVAILABILITY_FIELD_NUMBER
public static final int ALLOCATION_INFO_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()
required .mesos.OfferID id = 1;
hasId
in interface Protos.OfferOrBuilder
public Protos.OfferID getId()
required .mesos.OfferID id = 1;
getId
in interface Protos.OfferOrBuilder
public Protos.OfferIDOrBuilder getIdOrBuilder()
required .mesos.OfferID id = 1;
getIdOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasFrameworkId()
required .mesos.FrameworkID framework_id = 2;
hasFrameworkId
in interface Protos.OfferOrBuilder
public Protos.FrameworkID getFrameworkId()
required .mesos.FrameworkID framework_id = 2;
getFrameworkId
in interface Protos.OfferOrBuilder
public Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder()
required .mesos.FrameworkID framework_id = 2;
getFrameworkIdOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasSlaveId()
required .mesos.SlaveID slave_id = 3;
hasSlaveId
in interface Protos.OfferOrBuilder
public Protos.SlaveID getSlaveId()
required .mesos.SlaveID slave_id = 3;
getSlaveId
in interface Protos.OfferOrBuilder
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 3;
getSlaveIdOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasHostname()
required string hostname = 4;
hasHostname
in interface Protos.OfferOrBuilder
public java.lang.String getHostname()
required string hostname = 4;
getHostname
in interface Protos.OfferOrBuilder
public com.google.protobuf.ByteString getHostnameBytes()
required string hostname = 4;
getHostnameBytes
in interface Protos.OfferOrBuilder
public boolean hasUrl()
URL for reaching the slave running on the host.
optional .mesos.URL url = 8;
hasUrl
in interface Protos.OfferOrBuilder
public Protos.URL getUrl()
URL for reaching the slave running on the host.
optional .mesos.URL url = 8;
getUrl
in interface Protos.OfferOrBuilder
public Protos.URLOrBuilder getUrlOrBuilder()
URL for reaching the slave running on the host.
optional .mesos.URL url = 8;
getUrlOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasDomain()
The domain of the slave.
optional .mesos.DomainInfo domain = 11;
hasDomain
in interface Protos.OfferOrBuilder
public Protos.DomainInfo getDomain()
The domain of the slave.
optional .mesos.DomainInfo domain = 11;
getDomain
in interface Protos.OfferOrBuilder
public Protos.DomainInfoOrBuilder getDomainOrBuilder()
The domain of the slave.
optional .mesos.DomainInfo domain = 11;
getDomainOrBuilder
in interface Protos.OfferOrBuilder
public java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 5;
getResourcesList
in interface Protos.OfferOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 5;
getResourcesOrBuilderList
in interface Protos.OfferOrBuilder
public int getResourcesCount()
repeated .mesos.Resource resources = 5;
getResourcesCount
in interface Protos.OfferOrBuilder
public Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 5;
getResources
in interface Protos.OfferOrBuilder
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 5;
getResourcesOrBuilder
in interface Protos.OfferOrBuilder
public java.util.List<Protos.Attribute> getAttributesList()
repeated .mesos.Attribute attributes = 7;
getAttributesList
in interface Protos.OfferOrBuilder
public java.util.List<? extends Protos.AttributeOrBuilder> getAttributesOrBuilderList()
repeated .mesos.Attribute attributes = 7;
getAttributesOrBuilderList
in interface Protos.OfferOrBuilder
public int getAttributesCount()
repeated .mesos.Attribute attributes = 7;
getAttributesCount
in interface Protos.OfferOrBuilder
public Protos.Attribute getAttributes(int index)
repeated .mesos.Attribute attributes = 7;
getAttributes
in interface Protos.OfferOrBuilder
public Protos.AttributeOrBuilder getAttributesOrBuilder(int index)
repeated .mesos.Attribute attributes = 7;
getAttributesOrBuilder
in interface Protos.OfferOrBuilder
public java.util.List<Protos.ExecutorID> getExecutorIdsList()
Executors of the same framework running on this agent.
repeated .mesos.ExecutorID executor_ids = 6;
getExecutorIdsList
in interface Protos.OfferOrBuilder
public java.util.List<? extends Protos.ExecutorIDOrBuilder> getExecutorIdsOrBuilderList()
Executors of the same framework running on this agent.
repeated .mesos.ExecutorID executor_ids = 6;
getExecutorIdsOrBuilderList
in interface Protos.OfferOrBuilder
public int getExecutorIdsCount()
Executors of the same framework running on this agent.
repeated .mesos.ExecutorID executor_ids = 6;
getExecutorIdsCount
in interface Protos.OfferOrBuilder
public Protos.ExecutorID getExecutorIds(int index)
Executors of the same framework running on this agent.
repeated .mesos.ExecutorID executor_ids = 6;
getExecutorIds
in interface Protos.OfferOrBuilder
public Protos.ExecutorIDOrBuilder getExecutorIdsOrBuilder(int index)
Executors of the same framework running on this agent.
repeated .mesos.ExecutorID executor_ids = 6;
getExecutorIdsOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasUnavailability()
Signifies that the resources in this Offer may be unavailable during the given interval. Any tasks launched using these resources may be killed when the interval arrives. For example, these resources may be part of a planned maintenance schedule. This field only provides information about a planned unavailability. The unavailability interval may not necessarily start at exactly this interval, nor last for exactly the duration of this interval. The unavailability may also be forever! See comments in `Unavailability` for more details.
optional .mesos.Unavailability unavailability = 9;
hasUnavailability
in interface Protos.OfferOrBuilder
public Protos.Unavailability getUnavailability()
Signifies that the resources in this Offer may be unavailable during the given interval. Any tasks launched using these resources may be killed when the interval arrives. For example, these resources may be part of a planned maintenance schedule. This field only provides information about a planned unavailability. The unavailability interval may not necessarily start at exactly this interval, nor last for exactly the duration of this interval. The unavailability may also be forever! See comments in `Unavailability` for more details.
optional .mesos.Unavailability unavailability = 9;
getUnavailability
in interface Protos.OfferOrBuilder
public Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder()
Signifies that the resources in this Offer may be unavailable during the given interval. Any tasks launched using these resources may be killed when the interval arrives. For example, these resources may be part of a planned maintenance schedule. This field only provides information about a planned unavailability. The unavailability interval may not necessarily start at exactly this interval, nor last for exactly the duration of this interval. The unavailability may also be forever! See comments in `Unavailability` for more details.
optional .mesos.Unavailability unavailability = 9;
getUnavailabilityOrBuilder
in interface Protos.OfferOrBuilder
public boolean hasAllocationInfo()
An offer represents resources allocated to *one* of the roles managed by the scheduler. (Therefore, each `Offer.resources[i].allocation_info` will match the top level `Offer.allocation_info`).
optional .mesos.Resource.AllocationInfo allocation_info = 10;
hasAllocationInfo
in interface Protos.OfferOrBuilder
public Protos.Resource.AllocationInfo getAllocationInfo()
An offer represents resources allocated to *one* of the roles managed by the scheduler. (Therefore, each `Offer.resources[i].allocation_info` will match the top level `Offer.allocation_info`).
optional .mesos.Resource.AllocationInfo allocation_info = 10;
getAllocationInfo
in interface Protos.OfferOrBuilder
public Protos.Resource.AllocationInfoOrBuilder getAllocationInfoOrBuilder()
An offer represents resources allocated to *one* of the roles managed by the scheduler. (Therefore, each `Offer.resources[i].allocation_info` will match the top level `Offer.allocation_info`).
optional .mesos.Resource.AllocationInfo allocation_info = 10;
getAllocationInfoOrBuilder
in interface Protos.OfferOrBuilder
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.Offer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.Offer parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.Offer parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.Offer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.Offer.Builder newBuilderForType()
public static Protos.Offer.Builder newBuilder()
public static Protos.Offer.Builder newBuilder(Protos.Offer prototype)
public Protos.Offer.Builder toBuilder()
protected Protos.Offer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.Offer getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.Offer getDefaultInstanceForType()