public static interface Protos.TaskInfoOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsLimits(java.lang.String key)
Resource limits associated with the task.
|
Protos.CheckInfo |
getCheck()
A general check for the task.
|
Protos.CheckInfoOrBuilder |
getCheckOrBuilder()
A general check for the task.
|
Protos.CommandInfo |
getCommand()
optional .mesos.CommandInfo command = 7; |
Protos.CommandInfoOrBuilder |
getCommandOrBuilder()
optional .mesos.CommandInfo command = 7; |
Protos.ContainerInfo |
getContainer()
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
Protos.ContainerInfoOrBuilder |
getContainerOrBuilder()
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
com.google.protobuf.ByteString |
getData()
optional bytes data = 6; |
Protos.DiscoveryInfo |
getDiscovery()
Service discovery information for the task.
|
Protos.DiscoveryInfoOrBuilder |
getDiscoveryOrBuilder()
Service discovery information for the task.
|
Protos.ExecutorInfo |
getExecutor()
optional .mesos.ExecutorInfo executor = 5; |
Protos.ExecutorInfoOrBuilder |
getExecutorOrBuilder()
optional .mesos.ExecutorInfo executor = 5; |
Protos.HealthCheck |
getHealthCheck()
A health check for the task.
|
Protos.HealthCheckOrBuilder |
getHealthCheckOrBuilder()
A health check for the task.
|
Protos.KillPolicy |
getKillPolicy()
A kill policy for the task.
|
Protos.KillPolicyOrBuilder |
getKillPolicyOrBuilder()
A kill policy for the task.
|
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.util.Map<java.lang.String,Protos.Value.Scalar> |
getLimits()
Deprecated.
|
int |
getLimitsCount()
Resource limits associated with the task.
|
java.util.Map<java.lang.String,Protos.Value.Scalar> |
getLimitsMap()
Resource limits associated with the task.
|
Protos.Value.Scalar |
getLimitsOrDefault(java.lang.String key,
Protos.Value.Scalar defaultValue)
Resource limits associated with the task.
|
Protos.Value.Scalar |
getLimitsOrThrow(java.lang.String key)
Resource limits associated with the task.
|
Protos.DurationInfo |
getMaxCompletionTime()
Maximum duration for task completion.
|
Protos.DurationInfoOrBuilder |
getMaxCompletionTimeOrBuilder()
Maximum duration for task completion.
|
java.lang.String |
getName()
required string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
required string name = 1; |
Protos.Resource |
getResources(int index)
repeated .mesos.Resource resources = 4; |
int |
getResourcesCount()
repeated .mesos.Resource resources = 4; |
java.util.List<Protos.Resource> |
getResourcesList()
repeated .mesos.Resource resources = 4; |
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 4; |
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
repeated .mesos.Resource resources = 4; |
Protos.SlaveID |
getSlaveId()
required .mesos.SlaveID slave_id = 3; |
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 3; |
Protos.TaskID |
getTaskId()
required .mesos.TaskID task_id = 2; |
Protos.TaskIDOrBuilder |
getTaskIdOrBuilder()
required .mesos.TaskID task_id = 2; |
boolean |
hasCheck()
A general check for the task.
|
boolean |
hasCommand()
optional .mesos.CommandInfo command = 7; |
boolean |
hasContainer()
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
boolean |
hasData()
optional bytes data = 6; |
boolean |
hasDiscovery()
Service discovery information for the task.
|
boolean |
hasExecutor()
optional .mesos.ExecutorInfo executor = 5; |
boolean |
hasHealthCheck()
A health check for the task.
|
boolean |
hasKillPolicy()
A kill policy for the task.
|
boolean |
hasLabels()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
boolean |
hasMaxCompletionTime()
Maximum duration for task completion.
|
boolean |
hasName()
required string name = 1; |
boolean |
hasSlaveId()
required .mesos.SlaveID slave_id = 3; |
boolean |
hasTaskId()
required .mesos.TaskID task_id = 2; |
boolean hasName()
required string name = 1;
java.lang.String getName()
required string name = 1;
com.google.protobuf.ByteString getNameBytes()
required string name = 1;
boolean hasTaskId()
required .mesos.TaskID task_id = 2;
Protos.TaskID getTaskId()
required .mesos.TaskID task_id = 2;
Protos.TaskIDOrBuilder getTaskIdOrBuilder()
required .mesos.TaskID task_id = 2;
boolean hasSlaveId()
required .mesos.SlaveID slave_id = 3;
Protos.SlaveID getSlaveId()
required .mesos.SlaveID slave_id = 3;
Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 3;
java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 4;
Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 4;
int getResourcesCount()
repeated .mesos.Resource resources = 4;
java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 4;
Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 4;
boolean hasExecutor()
optional .mesos.ExecutorInfo executor = 5;
Protos.ExecutorInfo getExecutor()
optional .mesos.ExecutorInfo executor = 5;
Protos.ExecutorInfoOrBuilder getExecutorOrBuilder()
optional .mesos.ExecutorInfo executor = 5;
boolean hasCommand()
optional .mesos.CommandInfo command = 7;
Protos.CommandInfo getCommand()
optional .mesos.CommandInfo command = 7;
Protos.CommandInfoOrBuilder getCommandOrBuilder()
optional .mesos.CommandInfo command = 7;
boolean hasContainer()
Task provided with a container will launch the container as part of this task paired with the task's CommandInfo.
optional .mesos.ContainerInfo container = 9;
Protos.ContainerInfo getContainer()
Task provided with a container will launch the container as part of this task paired with the task's CommandInfo.
optional .mesos.ContainerInfo container = 9;
Protos.ContainerInfoOrBuilder getContainerOrBuilder()
Task provided with a container will launch the container as part of this task paired with the task's CommandInfo.
optional .mesos.ContainerInfo container = 9;
boolean hasHealthCheck()
A health check for the task. Implemented for executor-less command-based tasks. For tasks that specify an executor, it is the executor's responsibility to implement the health checking.
optional .mesos.HealthCheck health_check = 8;
Protos.HealthCheck getHealthCheck()
A health check for the task. Implemented for executor-less command-based tasks. For tasks that specify an executor, it is the executor's responsibility to implement the health checking.
optional .mesos.HealthCheck health_check = 8;
Protos.HealthCheckOrBuilder getHealthCheckOrBuilder()
A health check for the task. Implemented for executor-less command-based tasks. For tasks that specify an executor, it is the executor's responsibility to implement the health checking.
optional .mesos.HealthCheck health_check = 8;
boolean hasCheck()
A general check for the task. Implemented for all built-in executors. For tasks that specify an executor, it is the executor's responsibility to implement checking support. Executors should (all built-in executors will) neither interpret nor act on the check's result. NOTE: Check support in built-in executors is experimental. TODO(alexr): Consider supporting multiple checks per task.
optional .mesos.CheckInfo check = 13;
Protos.CheckInfo getCheck()
A general check for the task. Implemented for all built-in executors. For tasks that specify an executor, it is the executor's responsibility to implement checking support. Executors should (all built-in executors will) neither interpret nor act on the check's result. NOTE: Check support in built-in executors is experimental. TODO(alexr): Consider supporting multiple checks per task.
optional .mesos.CheckInfo check = 13;
Protos.CheckInfoOrBuilder getCheckOrBuilder()
A general check for the task. Implemented for all built-in executors. For tasks that specify an executor, it is the executor's responsibility to implement checking support. Executors should (all built-in executors will) neither interpret nor act on the check's result. NOTE: Check support in built-in executors is experimental. TODO(alexr): Consider supporting multiple checks per task.
optional .mesos.CheckInfo check = 13;
boolean hasKillPolicy()
A kill policy for the task. Implemented for executor-less command-based and docker tasks. For tasks that specify an executor, it is the executor's responsibility to implement the kill policy.
optional .mesos.KillPolicy kill_policy = 12;
Protos.KillPolicy getKillPolicy()
A kill policy for the task. Implemented for executor-less command-based and docker tasks. For tasks that specify an executor, it is the executor's responsibility to implement the kill policy.
optional .mesos.KillPolicy kill_policy = 12;
Protos.KillPolicyOrBuilder getKillPolicyOrBuilder()
A kill policy for the task. Implemented for executor-less command-based and docker tasks. For tasks that specify an executor, it is the executor's responsibility to implement the kill policy.
optional .mesos.KillPolicy kill_policy = 12;
boolean hasData()
optional bytes data = 6;
com.google.protobuf.ByteString getData()
optional bytes data = 6;
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 tasks with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 10;
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 tasks with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 10;
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 tasks with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 10;
boolean hasDiscovery()
Service discovery information for the task. 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 tasks without service discovery information.
optional .mesos.DiscoveryInfo discovery = 11;
Protos.DiscoveryInfo getDiscovery()
Service discovery information for the task. 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 tasks without service discovery information.
optional .mesos.DiscoveryInfo discovery = 11;
Protos.DiscoveryInfoOrBuilder getDiscoveryOrBuilder()
Service discovery information for the task. 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 tasks without service discovery information.
optional .mesos.DiscoveryInfo discovery = 11;
boolean hasMaxCompletionTime()
Maximum duration for task completion. If the task is non-terminal at the end of this duration, it will fail with the reason `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for executor-less tasks, and tasks that use Docker or default executors. It is the executor's responsibility to implement this, so it might not be supported by all custom executors.
optional .mesos.DurationInfo max_completion_time = 14;
Protos.DurationInfo getMaxCompletionTime()
Maximum duration for task completion. If the task is non-terminal at the end of this duration, it will fail with the reason `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for executor-less tasks, and tasks that use Docker or default executors. It is the executor's responsibility to implement this, so it might not be supported by all custom executors.
optional .mesos.DurationInfo max_completion_time = 14;
Protos.DurationInfoOrBuilder getMaxCompletionTimeOrBuilder()
Maximum duration for task completion. If the task is non-terminal at the end of this duration, it will fail with the reason `REASON_MAX_COMPLETION_TIME_REACHED`. Mesos supports this field for executor-less tasks, and tasks that use Docker or default executors. It is the executor's responsibility to implement this, so it might not be supported by all custom executors.
optional .mesos.DurationInfo max_completion_time = 14;
int getLimitsCount()
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
boolean containsLimits(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
@Deprecated java.util.Map<java.lang.String,Protos.Value.Scalar> getLimits()
getLimitsMap()
instead.java.util.Map<java.lang.String,Protos.Value.Scalar> getLimitsMap()
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
Protos.Value.Scalar getLimitsOrDefault(java.lang.String key, Protos.Value.Scalar defaultValue)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
Protos.Value.Scalar getLimitsOrThrow(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;