public static final class Protos.InverseOffer extends com.google.protobuf.GeneratedMessageV3 implements Protos.InverseOfferOrBuilder
A request to return some resources occupied by a framework.Protobuf type
mesos.InverseOffer
Modifier and Type | Class and Description |
---|---|
static class |
Protos.InverseOffer.Builder
A request to return some resources occupied by a framework.
|
Modifier and Type | Field and Description |
---|---|
static int |
FRAMEWORK_ID_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) |
static Protos.InverseOffer |
getDefaultInstance() |
Protos.InverseOffer |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.FrameworkID |
getFrameworkId()
The framework that should release its resources.
|
Protos.FrameworkIDOrBuilder |
getFrameworkIdOrBuilder()
The framework that should release its resources.
|
Protos.OfferID |
getId()
This is the same OfferID as found in normal offers, which allows
re-use of some of the OfferID-only messages.
|
Protos.OfferIDOrBuilder |
getIdOrBuilder()
This is the same OfferID as found in normal offers, which allows
re-use of some of the OfferID-only messages.
|
<any> |
getParserForType() |
Protos.Resource |
getResources(int index)
A list of resources being requested back from the framework,
on the slave identified by `slave_id`.
|
int |
getResourcesCount()
A list of resources being requested back from the framework,
on the slave identified by `slave_id`.
|
java.util.List<Protos.Resource> |
getResourcesList()
A list of resources being requested back from the framework,
on the slave identified by `slave_id`.
|
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
A list of resources being requested back from the framework,
on the slave identified by `slave_id`.
|
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
A list of resources being requested back from the framework,
on the slave identified by `slave_id`.
|
int |
getSerializedSize() |
Protos.SlaveID |
getSlaveId()
Specified if the resources need to be released from a particular slave.
|
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
Specified if the resources need to be released from a particular slave.
|
Protos.Unavailability |
getUnavailability()
This InverseOffer represents a planned unavailability event in the
specified interval.
|
Protos.UnavailabilityOrBuilder |
getUnavailabilityOrBuilder()
This InverseOffer represents a planned unavailability event in the
specified 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 |
hasFrameworkId()
The framework that should release its resources.
|
int |
hashCode() |
boolean |
hasId()
This is the same OfferID as found in normal offers, which allows
re-use of some of the OfferID-only messages.
|
boolean |
hasSlaveId()
Specified if the resources need to be released from a particular slave.
|
boolean |
hasUnavailability()
This InverseOffer represents a planned unavailability event in the
specified interval.
|
boolean |
hasUrl()
URL for reaching the slave running on the host.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.InverseOffer.Builder |
newBuilder() |
static Protos.InverseOffer.Builder |
newBuilder(Protos.InverseOffer prototype) |
Protos.InverseOffer.Builder |
newBuilderForType() |
protected Protos.InverseOffer.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.InverseOffer |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.InverseOffer |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.InverseOffer |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.InverseOffer |
parseFrom(java.nio.ByteBuffer data) |
static Protos.InverseOffer |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.InverseOffer |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.InverseOffer |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.InverseOffer |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.InverseOffer |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.InverseOffer |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.InverseOffer.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int ID_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
public static final int FRAMEWORK_ID_FIELD_NUMBER
public static final int SLAVE_ID_FIELD_NUMBER
public static final int UNAVAILABILITY_FIELD_NUMBER
public static final int RESOURCES_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()
This is the same OfferID as found in normal offers, which allows re-use of some of the OfferID-only messages.
required .mesos.OfferID id = 1;
hasId
in interface Protos.InverseOfferOrBuilder
public Protos.OfferID getId()
This is the same OfferID as found in normal offers, which allows re-use of some of the OfferID-only messages.
required .mesos.OfferID id = 1;
getId
in interface Protos.InverseOfferOrBuilder
public Protos.OfferIDOrBuilder getIdOrBuilder()
This is the same OfferID as found in normal offers, which allows re-use of some of the OfferID-only messages.
required .mesos.OfferID id = 1;
getIdOrBuilder
in interface Protos.InverseOfferOrBuilder
public boolean hasUrl()
URL for reaching the slave running on the host. This enables some optimizations as described in MESOS-3012, such as allowing the scheduler driver to bypass the master and talk directly with a slave.
optional .mesos.URL url = 2;
hasUrl
in interface Protos.InverseOfferOrBuilder
public Protos.URL getUrl()
URL for reaching the slave running on the host. This enables some optimizations as described in MESOS-3012, such as allowing the scheduler driver to bypass the master and talk directly with a slave.
optional .mesos.URL url = 2;
getUrl
in interface Protos.InverseOfferOrBuilder
public Protos.URLOrBuilder getUrlOrBuilder()
URL for reaching the slave running on the host. This enables some optimizations as described in MESOS-3012, such as allowing the scheduler driver to bypass the master and talk directly with a slave.
optional .mesos.URL url = 2;
getUrlOrBuilder
in interface Protos.InverseOfferOrBuilder
public boolean hasFrameworkId()
The framework that should release its resources. If no specifics are provided (i.e. which slave), all the framework's resources are requested back.
required .mesos.FrameworkID framework_id = 3;
hasFrameworkId
in interface Protos.InverseOfferOrBuilder
public Protos.FrameworkID getFrameworkId()
The framework that should release its resources. If no specifics are provided (i.e. which slave), all the framework's resources are requested back.
required .mesos.FrameworkID framework_id = 3;
getFrameworkId
in interface Protos.InverseOfferOrBuilder
public Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder()
The framework that should release its resources. If no specifics are provided (i.e. which slave), all the framework's resources are requested back.
required .mesos.FrameworkID framework_id = 3;
getFrameworkIdOrBuilder
in interface Protos.InverseOfferOrBuilder
public boolean hasSlaveId()
Specified if the resources need to be released from a particular slave. All the framework's resources on this slave are requested back, unless further qualified by the `resources` field.
optional .mesos.SlaveID slave_id = 4;
hasSlaveId
in interface Protos.InverseOfferOrBuilder
public Protos.SlaveID getSlaveId()
Specified if the resources need to be released from a particular slave. All the framework's resources on this slave are requested back, unless further qualified by the `resources` field.
optional .mesos.SlaveID slave_id = 4;
getSlaveId
in interface Protos.InverseOfferOrBuilder
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
Specified if the resources need to be released from a particular slave. All the framework's resources on this slave are requested back, unless further qualified by the `resources` field.
optional .mesos.SlaveID slave_id = 4;
getSlaveIdOrBuilder
in interface Protos.InverseOfferOrBuilder
public boolean hasUnavailability()
This InverseOffer represents a planned unavailability event in the specified interval. Any tasks running on the given framework or slave may be killed when the interval arrives. Therefore, frameworks should aim to gracefully terminate tasks prior to the arrival of the interval. For reserved resources, the resources are expected to be returned to the framework after the unavailability interval. This is an expectation, not a guarantee. For example, if the unavailability duration is not set, the resources may be removed permanently. For other resources, there is no guarantee that requested resources will be returned after the unavailability interval. The allocator has no obligation to re-offer these resources to the prior framework after the unavailability.
required .mesos.Unavailability unavailability = 5;
hasUnavailability
in interface Protos.InverseOfferOrBuilder
public Protos.Unavailability getUnavailability()
This InverseOffer represents a planned unavailability event in the specified interval. Any tasks running on the given framework or slave may be killed when the interval arrives. Therefore, frameworks should aim to gracefully terminate tasks prior to the arrival of the interval. For reserved resources, the resources are expected to be returned to the framework after the unavailability interval. This is an expectation, not a guarantee. For example, if the unavailability duration is not set, the resources may be removed permanently. For other resources, there is no guarantee that requested resources will be returned after the unavailability interval. The allocator has no obligation to re-offer these resources to the prior framework after the unavailability.
required .mesos.Unavailability unavailability = 5;
getUnavailability
in interface Protos.InverseOfferOrBuilder
public Protos.UnavailabilityOrBuilder getUnavailabilityOrBuilder()
This InverseOffer represents a planned unavailability event in the specified interval. Any tasks running on the given framework or slave may be killed when the interval arrives. Therefore, frameworks should aim to gracefully terminate tasks prior to the arrival of the interval. For reserved resources, the resources are expected to be returned to the framework after the unavailability interval. This is an expectation, not a guarantee. For example, if the unavailability duration is not set, the resources may be removed permanently. For other resources, there is no guarantee that requested resources will be returned after the unavailability interval. The allocator has no obligation to re-offer these resources to the prior framework after the unavailability.
required .mesos.Unavailability unavailability = 5;
getUnavailabilityOrBuilder
in interface Protos.InverseOfferOrBuilder
public java.util.List<Protos.Resource> getResourcesList()
A list of resources being requested back from the framework, on the slave identified by `slave_id`. If no resources are specified then all resources are being requested back. For the purpose of maintenance, this field is always empty (maintenance always requests all resources back).
repeated .mesos.Resource resources = 6;
getResourcesList
in interface Protos.InverseOfferOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
A list of resources being requested back from the framework, on the slave identified by `slave_id`. If no resources are specified then all resources are being requested back. For the purpose of maintenance, this field is always empty (maintenance always requests all resources back).
repeated .mesos.Resource resources = 6;
getResourcesOrBuilderList
in interface Protos.InverseOfferOrBuilder
public int getResourcesCount()
A list of resources being requested back from the framework, on the slave identified by `slave_id`. If no resources are specified then all resources are being requested back. For the purpose of maintenance, this field is always empty (maintenance always requests all resources back).
repeated .mesos.Resource resources = 6;
getResourcesCount
in interface Protos.InverseOfferOrBuilder
public Protos.Resource getResources(int index)
A list of resources being requested back from the framework, on the slave identified by `slave_id`. If no resources are specified then all resources are being requested back. For the purpose of maintenance, this field is always empty (maintenance always requests all resources back).
repeated .mesos.Resource resources = 6;
getResources
in interface Protos.InverseOfferOrBuilder
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
A list of resources being requested back from the framework, on the slave identified by `slave_id`. If no resources are specified then all resources are being requested back. For the purpose of maintenance, this field is always empty (maintenance always requests all resources back).
repeated .mesos.Resource resources = 6;
getResourcesOrBuilder
in interface Protos.InverseOfferOrBuilder
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.InverseOffer parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.InverseOffer parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.InverseOffer parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.InverseOffer parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.InverseOffer parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.InverseOffer parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.InverseOffer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.InverseOffer parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.InverseOffer parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.InverseOffer parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.InverseOffer.Builder newBuilderForType()
public static Protos.InverseOffer.Builder newBuilder()
public static Protos.InverseOffer.Builder newBuilder(Protos.InverseOffer prototype)
public Protos.InverseOffer.Builder toBuilder()
protected Protos.InverseOffer.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.InverseOffer getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.InverseOffer getDefaultInstanceForType()