public static final class Protos.ExecutorInfo extends com.google.protobuf.GeneratedMessageV3 implements Protos.ExecutorInfoOrBuilder
Describes information about an executor.Protobuf type
mesos.ExecutorInfo| Modifier and Type | Class and Description |
|---|---|
static class |
Protos.ExecutorInfo.Builder
Describes information about an executor.
|
static class |
Protos.ExecutorInfo.Type
Protobuf enum
mesos.ExecutorInfo.Type |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMAND_FIELD_NUMBER |
static int |
CONTAINER_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
DISCOVERY_FIELD_NUMBER |
static int |
EXECUTOR_ID_FIELD_NUMBER |
static int |
FRAMEWORK_ID_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
RESOURCES_FIELD_NUMBER |
static int |
SHUTDOWN_GRACE_PERIOD_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Protos.CommandInfo |
getCommand()
optional .mesos.CommandInfo command = 7; |
Protos.CommandInfoOrBuilder |
getCommandOrBuilder()
optional .mesos.CommandInfo command = 7; |
Protos.ContainerInfo |
getContainer()
Executor provided with a container will launch the container
with the executor's CommandInfo and we expect the container to
act as a Mesos executor.
|
Protos.ContainerInfoOrBuilder |
getContainerOrBuilder()
Executor provided with a container will launch the container
with the executor's CommandInfo and we expect the container to
act as a Mesos executor.
|
com.google.protobuf.ByteString |
getData()
This field can be used to pass arbitrary bytes to an executor.
|
static Protos.ExecutorInfo |
getDefaultInstance() |
Protos.ExecutorInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.DiscoveryInfo |
getDiscovery()
Service discovery information for the executor.
|
Protos.DiscoveryInfoOrBuilder |
getDiscoveryOrBuilder()
Service discovery information for the executor.
|
Protos.ExecutorID |
getExecutorId()
required .mesos.ExecutorID executor_id = 1; |
Protos.ExecutorIDOrBuilder |
getExecutorIdOrBuilder()
required .mesos.ExecutorID executor_id = 1; |
Protos.FrameworkID |
getFrameworkId()
TODO(benh): Make this required.
|
Protos.FrameworkIDOrBuilder |
getFrameworkIdOrBuilder()
TODO(benh): Make this required.
|
Protos.Labels |
getLabels()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
java.lang.String |
getName()
optional string name = 9; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 9; |
<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.DurationInfo |
getShutdownGracePeriod()
When shutting down an executor the agent will wait in a
best-effort manner for the grace period specified here
before forcibly destroying the container.
|
Protos.DurationInfoOrBuilder |
getShutdownGracePeriodOrBuilder()
When shutting down an executor the agent will wait in a
best-effort manner for the grace period specified here
before forcibly destroying the container.
|
java.lang.String |
getSource()
Deprecated.
|
com.google.protobuf.ByteString |
getSourceBytes()
Deprecated.
|
Protos.ExecutorInfo.Type |
getType()
For backwards compatibility, if this field is not set when using `LAUNCH`
operation, Mesos will infer the type by checking if `command` is set
(`CUSTOM`) or unset (`DEFAULT`).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCommand()
optional .mesos.CommandInfo command = 7; |
boolean |
hasContainer()
Executor provided with a container will launch the container
with the executor's CommandInfo and we expect the container to
act as a Mesos executor.
|
boolean |
hasData()
This field can be used to pass arbitrary bytes to an executor.
|
boolean |
hasDiscovery()
Service discovery information for the executor.
|
boolean |
hasExecutorId()
required .mesos.ExecutorID executor_id = 1; |
boolean |
hasFrameworkId()
TODO(benh): Make this required.
|
int |
hashCode() |
boolean |
hasLabels()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
boolean |
hasName()
optional string name = 9; |
boolean |
hasShutdownGracePeriod()
When shutting down an executor the agent will wait in a
best-effort manner for the grace period specified here
before forcibly destroying the container.
|
boolean |
hasSource()
Deprecated.
|
boolean |
hasType()
For backwards compatibility, if this field is not set when using `LAUNCH`
operation, Mesos will infer the type by checking if `command` is set
(`CUSTOM`) or unset (`DEFAULT`).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.ExecutorInfo.Builder |
newBuilder() |
static Protos.ExecutorInfo.Builder |
newBuilder(Protos.ExecutorInfo prototype) |
Protos.ExecutorInfo.Builder |
newBuilderForType() |
protected Protos.ExecutorInfo.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.ExecutorInfo |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.ExecutorInfo |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExecutorInfo |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExecutorInfo |
parseFrom(java.nio.ByteBuffer data) |
static Protos.ExecutorInfo |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExecutorInfo |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.ExecutorInfo |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExecutorInfo |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.ExecutorInfo |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.ExecutorInfo |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.ExecutorInfo.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int TYPE_FIELD_NUMBER
public static final int EXECUTOR_ID_FIELD_NUMBER
public static final int FRAMEWORK_ID_FIELD_NUMBER
public static final int COMMAND_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
public static final int RESOURCES_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int DISCOVERY_FIELD_NUMBER
public static final int SHUTDOWN_GRACE_PERIOD_FIELD_NUMBER
public static final int LABELS_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 hasType()
For backwards compatibility, if this field is not set when using `LAUNCH` operation, Mesos will infer the type by checking if `command` is set (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using `LAUNCH_GROUP` operation. TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in `LAUNCH` operation.
optional .mesos.ExecutorInfo.Type type = 15;hasType in interface Protos.ExecutorInfoOrBuilderpublic Protos.ExecutorInfo.Type getType()
For backwards compatibility, if this field is not set when using `LAUNCH` operation, Mesos will infer the type by checking if `command` is set (`CUSTOM`) or unset (`DEFAULT`). `type` must be set when using `LAUNCH_GROUP` operation. TODO(vinod): Add support for explicitly setting `type` to `DEFAULT` in `LAUNCH` operation.
optional .mesos.ExecutorInfo.Type type = 15;getType in interface Protos.ExecutorInfoOrBuilderpublic boolean hasExecutorId()
required .mesos.ExecutorID executor_id = 1;hasExecutorId in interface Protos.ExecutorInfoOrBuilderpublic Protos.ExecutorID getExecutorId()
required .mesos.ExecutorID executor_id = 1;getExecutorId in interface Protos.ExecutorInfoOrBuilderpublic Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder()
required .mesos.ExecutorID executor_id = 1;getExecutorIdOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasFrameworkId()
TODO(benh): Make this required.
optional .mesos.FrameworkID framework_id = 8;hasFrameworkId in interface Protos.ExecutorInfoOrBuilderpublic Protos.FrameworkID getFrameworkId()
TODO(benh): Make this required.
optional .mesos.FrameworkID framework_id = 8;getFrameworkId in interface Protos.ExecutorInfoOrBuilderpublic Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder()
TODO(benh): Make this required.
optional .mesos.FrameworkID framework_id = 8;getFrameworkIdOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasCommand()
optional .mesos.CommandInfo command = 7;hasCommand in interface Protos.ExecutorInfoOrBuilderpublic Protos.CommandInfo getCommand()
optional .mesos.CommandInfo command = 7;getCommand in interface Protos.ExecutorInfoOrBuilderpublic Protos.CommandInfoOrBuilder getCommandOrBuilder()
optional .mesos.CommandInfo command = 7;getCommandOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasContainer()
Executor provided with a container will launch the container with the executor's CommandInfo and we expect the container to act as a Mesos executor.
optional .mesos.ContainerInfo container = 11;hasContainer in interface Protos.ExecutorInfoOrBuilderpublic Protos.ContainerInfo getContainer()
Executor provided with a container will launch the container with the executor's CommandInfo and we expect the container to act as a Mesos executor.
optional .mesos.ContainerInfo container = 11;getContainer in interface Protos.ExecutorInfoOrBuilderpublic Protos.ContainerInfoOrBuilder getContainerOrBuilder()
Executor provided with a container will launch the container with the executor's CommandInfo and we expect the container to act as a Mesos executor.
optional .mesos.ContainerInfo container = 11;getContainerOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 5;getResourcesList in interface Protos.ExecutorInfoOrBuilderpublic java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 5;getResourcesOrBuilderList in interface Protos.ExecutorInfoOrBuilderpublic int getResourcesCount()
repeated .mesos.Resource resources = 5;getResourcesCount in interface Protos.ExecutorInfoOrBuilderpublic Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 5;getResources in interface Protos.ExecutorInfoOrBuilderpublic Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 5;getResourcesOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasName()
optional string name = 9;hasName in interface Protos.ExecutorInfoOrBuilderpublic java.lang.String getName()
optional string name = 9;getName in interface Protos.ExecutorInfoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
optional string name = 9;getNameBytes in interface Protos.ExecutorInfoOrBuilder@Deprecated public boolean hasSource()
'source' is an identifier style string used by frameworks to track the source of an executor. This is useful when it's possible for different executor ids to be related semantically. NOTE: 'source' is exposed alongside the resource usage of the executor via JSON on the slave. This allows users to import usage information into a time series database for monitoring. This field is deprecated since 1.0. Please use labels for free-form metadata instead.
optional string source = 10 [deprecated = true];hasSource in interface Protos.ExecutorInfoOrBuilder@Deprecated public java.lang.String getSource()
'source' is an identifier style string used by frameworks to track the source of an executor. This is useful when it's possible for different executor ids to be related semantically. NOTE: 'source' is exposed alongside the resource usage of the executor via JSON on the slave. This allows users to import usage information into a time series database for monitoring. This field is deprecated since 1.0. Please use labels for free-form metadata instead.
optional string source = 10 [deprecated = true];getSource in interface Protos.ExecutorInfoOrBuilder@Deprecated public com.google.protobuf.ByteString getSourceBytes()
'source' is an identifier style string used by frameworks to track the source of an executor. This is useful when it's possible for different executor ids to be related semantically. NOTE: 'source' is exposed alongside the resource usage of the executor via JSON on the slave. This allows users to import usage information into a time series database for monitoring. This field is deprecated since 1.0. Please use labels for free-form metadata instead.
optional string source = 10 [deprecated = true];getSourceBytes in interface Protos.ExecutorInfoOrBuilderpublic boolean hasData()
This field can be used to pass arbitrary bytes to an executor.
optional bytes data = 4;hasData in interface Protos.ExecutorInfoOrBuilderpublic com.google.protobuf.ByteString getData()
This field can be used to pass arbitrary bytes to an executor.
optional bytes data = 4;getData in interface Protos.ExecutorInfoOrBuilderpublic boolean hasDiscovery()
Service discovery information for the executor. It is not interpreted or acted upon by Mesos. It is up to a service discovery system to use this information as needed and to handle executors without service discovery information.
optional .mesos.DiscoveryInfo discovery = 12;hasDiscovery in interface Protos.ExecutorInfoOrBuilderpublic Protos.DiscoveryInfo getDiscovery()
Service discovery information for the executor. It is not interpreted or acted upon by Mesos. It is up to a service discovery system to use this information as needed and to handle executors without service discovery information.
optional .mesos.DiscoveryInfo discovery = 12;getDiscovery in interface Protos.ExecutorInfoOrBuilderpublic Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder()
Service discovery information for the executor. It is not interpreted or acted upon by Mesos. It is up to a service discovery system to use this information as needed and to handle executors without service discovery information.
optional .mesos.DiscoveryInfo discovery = 12;getDiscoveryOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasShutdownGracePeriod()
When shutting down an executor the agent will wait in a best-effort manner for the grace period specified here before forcibly destroying the container. The executor must not assume that it will always be allotted the full grace period, as the agent may decide to allot a shorter period and failures / forcible terminations may occur.
optional .mesos.DurationInfo shutdown_grace_period = 13;hasShutdownGracePeriod in interface Protos.ExecutorInfoOrBuilderpublic Protos.DurationInfo getShutdownGracePeriod()
When shutting down an executor the agent will wait in a best-effort manner for the grace period specified here before forcibly destroying the container. The executor must not assume that it will always be allotted the full grace period, as the agent may decide to allot a shorter period and failures / forcible terminations may occur.
optional .mesos.DurationInfo shutdown_grace_period = 13;getShutdownGracePeriod in interface Protos.ExecutorInfoOrBuilderpublic Protos.DurationInfoOrBuilder getShutdownGracePeriodOrBuilder()
When shutting down an executor the agent will wait in a best-effort manner for the grace period specified here before forcibly destroying the container. The executor must not assume that it will always be allotted the full grace period, as the agent may decide to allot a shorter period and failures / forcible terminations may occur.
optional .mesos.DurationInfo shutdown_grace_period = 13;getShutdownGracePeriodOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic boolean hasLabels()
Labels are free-form key value pairs which are exposed through master and slave endpoints. Labels will not be interpreted or acted upon by Mesos itself. As opposed to the data field, labels will be kept in memory on master and slave processes. Therefore, labels should be used to tag executors with lightweight metadata. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 14;hasLabels in interface Protos.ExecutorInfoOrBuilderpublic Protos.Labels getLabels()
Labels are free-form key value pairs which are exposed through master and slave endpoints. Labels will not be interpreted or acted upon by Mesos itself. As opposed to the data field, labels will be kept in memory on master and slave processes. Therefore, labels should be used to tag executors with lightweight metadata. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 14;getLabels in interface Protos.ExecutorInfoOrBuilderpublic Protos.LabelsOrBuilder getLabelsOrBuilder()
Labels are free-form key value pairs which are exposed through master and slave endpoints. Labels will not be interpreted or acted upon by Mesos itself. As opposed to the data field, labels will be kept in memory on master and slave processes. Therefore, labels should be used to tag executors with lightweight metadata. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 14;getLabelsOrBuilder in interface Protos.ExecutorInfoOrBuilderpublic 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.ExecutorInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExecutorInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExecutorInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExecutorInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExecutorInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Protos.ExecutorInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ExecutorInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ExecutorInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ExecutorInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Protos.ExecutorInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Protos.ExecutorInfo.Builder newBuilderForType()
public static Protos.ExecutorInfo.Builder newBuilder()
public static Protos.ExecutorInfo.Builder newBuilder(Protos.ExecutorInfo prototype)
public Protos.ExecutorInfo.Builder toBuilder()
protected Protos.ExecutorInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.ExecutorInfo getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.ExecutorInfo getDefaultInstanceForType()