public static final class Protos.TaskInfo.Builder extends <any> implements Protos.TaskInfoOrBuilder
Describes a task. Passed from the scheduler all the way to an executor (see SchedulerDriver::launchTasks and Executor::launchTask). Either ExecutorInfo or CommandInfo should be set. A different executor can be used to launch this task, and subsequent tasks meant for the same executor can reuse the same ExecutorInfo struct.Protobuf type
mesos.TaskInfo
Modifier and Type | Method and Description |
---|---|
Protos.TaskInfo.Builder |
addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.TaskInfo.Builder |
addResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
addResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
addResources(Protos.Resource value)
repeated .mesos.Resource resources = 4; |
Protos.Resource.Builder |
addResourcesBuilder()
repeated .mesos.Resource resources = 4; |
Protos.Resource.Builder |
addResourcesBuilder(int index)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo |
build() |
Protos.TaskInfo |
buildPartial() |
Protos.TaskInfo.Builder |
clear() |
Protos.TaskInfo.Builder |
clearCheck()
A general check for the task.
|
Protos.TaskInfo.Builder |
clearCommand()
optional .mesos.CommandInfo command = 7; |
Protos.TaskInfo.Builder |
clearContainer()
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
Protos.TaskInfo.Builder |
clearData()
optional bytes data = 6; |
Protos.TaskInfo.Builder |
clearDiscovery()
Service discovery information for the task.
|
Protos.TaskInfo.Builder |
clearExecutor()
optional .mesos.ExecutorInfo executor = 5; |
Protos.TaskInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.TaskInfo.Builder |
clearHealthCheck()
A health check for the task.
|
Protos.TaskInfo.Builder |
clearKillPolicy()
A kill policy for the task.
|
Protos.TaskInfo.Builder |
clearLabels()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
Protos.TaskInfo.Builder |
clearLimits() |
Protos.TaskInfo.Builder |
clearMaxCompletionTime()
Maximum duration for task completion.
|
Protos.TaskInfo.Builder |
clearName()
required string name = 1; |
Protos.TaskInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.TaskInfo.Builder |
clearResources()
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
clearSlaveId()
required .mesos.SlaveID slave_id = 3; |
Protos.TaskInfo.Builder |
clearTaskId()
required .mesos.TaskID task_id = 2; |
Protos.TaskInfo.Builder |
clone() |
boolean |
containsLimits(java.lang.String key)
Resource limits associated with the task.
|
Protos.CheckInfo |
getCheck()
A general check for the task.
|
Protos.CheckInfo.Builder |
getCheckBuilder()
A general check for the task.
|
Protos.CheckInfoOrBuilder |
getCheckOrBuilder()
A general check for the task.
|
Protos.CommandInfo |
getCommand()
optional .mesos.CommandInfo command = 7; |
Protos.CommandInfo.Builder |
getCommandBuilder()
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.ContainerInfo.Builder |
getContainerBuilder()
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.TaskInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Protos.DiscoveryInfo |
getDiscovery()
Service discovery information for the task.
|
Protos.DiscoveryInfo.Builder |
getDiscoveryBuilder()
Service discovery information for the task.
|
Protos.DiscoveryInfoOrBuilder |
getDiscoveryOrBuilder()
Service discovery information for the task.
|
Protos.ExecutorInfo |
getExecutor()
optional .mesos.ExecutorInfo executor = 5; |
Protos.ExecutorInfo.Builder |
getExecutorBuilder()
optional .mesos.ExecutorInfo executor = 5; |
Protos.ExecutorInfoOrBuilder |
getExecutorOrBuilder()
optional .mesos.ExecutorInfo executor = 5; |
Protos.HealthCheck |
getHealthCheck()
A health check for the task.
|
Protos.HealthCheck.Builder |
getHealthCheckBuilder()
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.KillPolicy.Builder |
getKillPolicyBuilder()
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.Labels.Builder |
getLabelsBuilder()
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.DurationInfo.Builder |
getMaxCompletionTimeBuilder()
Maximum duration for task completion.
|
Protos.DurationInfoOrBuilder |
getMaxCompletionTimeOrBuilder()
Maximum duration for task completion.
|
java.util.Map<java.lang.String,Protos.Value.Scalar> |
getMutableLimits()
Deprecated.
|
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; |
Protos.Resource.Builder |
getResourcesBuilder(int index)
repeated .mesos.Resource resources = 4; |
java.util.List<Protos.Resource.Builder> |
getResourcesBuilderList()
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.SlaveID.Builder |
getSlaveIdBuilder()
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.TaskID.Builder |
getTaskIdBuilder()
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; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Protos.TaskInfo.Builder |
mergeCheck(Protos.CheckInfo value)
A general check for the task.
|
Protos.TaskInfo.Builder |
mergeCommand(Protos.CommandInfo value)
optional .mesos.CommandInfo command = 7; |
Protos.TaskInfo.Builder |
mergeContainer(Protos.ContainerInfo value)
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
Protos.TaskInfo.Builder |
mergeDiscovery(Protos.DiscoveryInfo value)
Service discovery information for the task.
|
Protos.TaskInfo.Builder |
mergeExecutor(Protos.ExecutorInfo value)
optional .mesos.ExecutorInfo executor = 5; |
Protos.TaskInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.TaskInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.TaskInfo.Builder |
mergeHealthCheck(Protos.HealthCheck value)
A health check for the task.
|
Protos.TaskInfo.Builder |
mergeKillPolicy(Protos.KillPolicy value)
A kill policy for the task.
|
Protos.TaskInfo.Builder |
mergeLabels(Protos.Labels value)
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
Protos.TaskInfo.Builder |
mergeMaxCompletionTime(Protos.DurationInfo value)
Maximum duration for task completion.
|
Protos.TaskInfo.Builder |
mergeSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 3; |
Protos.TaskInfo.Builder |
mergeTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2; |
Protos.TaskInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.TaskInfo.Builder |
putAllLimits(java.util.Map<java.lang.String,Protos.Value.Scalar> values)
Resource limits associated with the task.
|
Protos.TaskInfo.Builder |
putLimits(java.lang.String key,
Protos.Value.Scalar value)
Resource limits associated with the task.
|
Protos.TaskInfo.Builder |
removeLimits(java.lang.String key)
Resource limits associated with the task.
|
Protos.TaskInfo.Builder |
removeResources(int index)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
setCheck(Protos.CheckInfo.Builder builderForValue)
A general check for the task.
|
Protos.TaskInfo.Builder |
setCheck(Protos.CheckInfo value)
A general check for the task.
|
Protos.TaskInfo.Builder |
setCommand(Protos.CommandInfo.Builder builderForValue)
optional .mesos.CommandInfo command = 7; |
Protos.TaskInfo.Builder |
setCommand(Protos.CommandInfo value)
optional .mesos.CommandInfo command = 7; |
Protos.TaskInfo.Builder |
setContainer(Protos.ContainerInfo.Builder builderForValue)
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
Protos.TaskInfo.Builder |
setContainer(Protos.ContainerInfo value)
Task provided with a container will launch the container as part
of this task paired with the task's CommandInfo.
|
Protos.TaskInfo.Builder |
setData(com.google.protobuf.ByteString value)
optional bytes data = 6; |
Protos.TaskInfo.Builder |
setDiscovery(Protos.DiscoveryInfo.Builder builderForValue)
Service discovery information for the task.
|
Protos.TaskInfo.Builder |
setDiscovery(Protos.DiscoveryInfo value)
Service discovery information for the task.
|
Protos.TaskInfo.Builder |
setExecutor(Protos.ExecutorInfo.Builder builderForValue)
optional .mesos.ExecutorInfo executor = 5; |
Protos.TaskInfo.Builder |
setExecutor(Protos.ExecutorInfo value)
optional .mesos.ExecutorInfo executor = 5; |
Protos.TaskInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.TaskInfo.Builder |
setHealthCheck(Protos.HealthCheck.Builder builderForValue)
A health check for the task.
|
Protos.TaskInfo.Builder |
setHealthCheck(Protos.HealthCheck value)
A health check for the task.
|
Protos.TaskInfo.Builder |
setKillPolicy(Protos.KillPolicy.Builder builderForValue)
A kill policy for the task.
|
Protos.TaskInfo.Builder |
setKillPolicy(Protos.KillPolicy value)
A kill policy for the task.
|
Protos.TaskInfo.Builder |
setLabels(Protos.Labels.Builder builderForValue)
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
Protos.TaskInfo.Builder |
setLabels(Protos.Labels value)
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
Protos.TaskInfo.Builder |
setMaxCompletionTime(Protos.DurationInfo.Builder builderForValue)
Maximum duration for task completion.
|
Protos.TaskInfo.Builder |
setMaxCompletionTime(Protos.DurationInfo value)
Maximum duration for task completion.
|
Protos.TaskInfo.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.TaskInfo.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.TaskInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.TaskInfo.Builder |
setResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
setResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 4; |
Protos.TaskInfo.Builder |
setSlaveId(Protos.SlaveID.Builder builderForValue)
required .mesos.SlaveID slave_id = 3; |
Protos.TaskInfo.Builder |
setSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 3; |
Protos.TaskInfo.Builder |
setTaskId(Protos.TaskID.Builder builderForValue)
required .mesos.TaskID task_id = 2; |
Protos.TaskInfo.Builder |
setTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2; |
Protos.TaskInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public Protos.TaskInfo.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.TaskInfo getDefaultInstanceForType()
public Protos.TaskInfo build()
public Protos.TaskInfo buildPartial()
public Protos.TaskInfo.Builder clone()
public Protos.TaskInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.TaskInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.TaskInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.TaskInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.TaskInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.TaskInfo.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.TaskInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public boolean hasName()
required string name = 1;
hasName
in interface Protos.TaskInfoOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.TaskInfoOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setName(java.lang.String value)
required string name = 1;
public Protos.TaskInfo.Builder clearName()
required string name = 1;
public Protos.TaskInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasTaskId()
required .mesos.TaskID task_id = 2;
hasTaskId
in interface Protos.TaskInfoOrBuilder
public Protos.TaskID getTaskId()
required .mesos.TaskID task_id = 2;
getTaskId
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2;
public Protos.TaskInfo.Builder setTaskId(Protos.TaskID.Builder builderForValue)
required .mesos.TaskID task_id = 2;
public Protos.TaskInfo.Builder mergeTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2;
public Protos.TaskInfo.Builder clearTaskId()
required .mesos.TaskID task_id = 2;
public Protos.TaskID.Builder getTaskIdBuilder()
required .mesos.TaskID task_id = 2;
public Protos.TaskIDOrBuilder getTaskIdOrBuilder()
required .mesos.TaskID task_id = 2;
getTaskIdOrBuilder
in interface Protos.TaskInfoOrBuilder
public boolean hasSlaveId()
required .mesos.SlaveID slave_id = 3;
hasSlaveId
in interface Protos.TaskInfoOrBuilder
public Protos.SlaveID getSlaveId()
required .mesos.SlaveID slave_id = 3;
getSlaveId
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 3;
public Protos.TaskInfo.Builder setSlaveId(Protos.SlaveID.Builder builderForValue)
required .mesos.SlaveID slave_id = 3;
public Protos.TaskInfo.Builder mergeSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 3;
public Protos.TaskInfo.Builder clearSlaveId()
required .mesos.SlaveID slave_id = 3;
public Protos.SlaveID.Builder getSlaveIdBuilder()
required .mesos.SlaveID slave_id = 3;
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 3;
getSlaveIdOrBuilder
in interface Protos.TaskInfoOrBuilder
public java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 4;
getResourcesList
in interface Protos.TaskInfoOrBuilder
public int getResourcesCount()
repeated .mesos.Resource resources = 4;
getResourcesCount
in interface Protos.TaskInfoOrBuilder
public Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 4;
getResources
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder setResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder addResources(Protos.Resource value)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder addResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder addResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder clearResources()
repeated .mesos.Resource resources = 4;
public Protos.TaskInfo.Builder removeResources(int index)
repeated .mesos.Resource resources = 4;
public Protos.Resource.Builder getResourcesBuilder(int index)
repeated .mesos.Resource resources = 4;
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 4;
getResourcesOrBuilder
in interface Protos.TaskInfoOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 4;
getResourcesOrBuilderList
in interface Protos.TaskInfoOrBuilder
public Protos.Resource.Builder addResourcesBuilder()
repeated .mesos.Resource resources = 4;
public Protos.Resource.Builder addResourcesBuilder(int index)
repeated .mesos.Resource resources = 4;
public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
repeated .mesos.Resource resources = 4;
public boolean hasExecutor()
optional .mesos.ExecutorInfo executor = 5;
hasExecutor
in interface Protos.TaskInfoOrBuilder
public Protos.ExecutorInfo getExecutor()
optional .mesos.ExecutorInfo executor = 5;
getExecutor
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setExecutor(Protos.ExecutorInfo value)
optional .mesos.ExecutorInfo executor = 5;
public Protos.TaskInfo.Builder setExecutor(Protos.ExecutorInfo.Builder builderForValue)
optional .mesos.ExecutorInfo executor = 5;
public Protos.TaskInfo.Builder mergeExecutor(Protos.ExecutorInfo value)
optional .mesos.ExecutorInfo executor = 5;
public Protos.TaskInfo.Builder clearExecutor()
optional .mesos.ExecutorInfo executor = 5;
public Protos.ExecutorInfo.Builder getExecutorBuilder()
optional .mesos.ExecutorInfo executor = 5;
public Protos.ExecutorInfoOrBuilder getExecutorOrBuilder()
optional .mesos.ExecutorInfo executor = 5;
getExecutorOrBuilder
in interface Protos.TaskInfoOrBuilder
public boolean hasCommand()
optional .mesos.CommandInfo command = 7;
hasCommand
in interface Protos.TaskInfoOrBuilder
public Protos.CommandInfo getCommand()
optional .mesos.CommandInfo command = 7;
getCommand
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setCommand(Protos.CommandInfo value)
optional .mesos.CommandInfo command = 7;
public Protos.TaskInfo.Builder setCommand(Protos.CommandInfo.Builder builderForValue)
optional .mesos.CommandInfo command = 7;
public Protos.TaskInfo.Builder mergeCommand(Protos.CommandInfo value)
optional .mesos.CommandInfo command = 7;
public Protos.TaskInfo.Builder clearCommand()
optional .mesos.CommandInfo command = 7;
public Protos.CommandInfo.Builder getCommandBuilder()
optional .mesos.CommandInfo command = 7;
public Protos.CommandInfoOrBuilder getCommandOrBuilder()
optional .mesos.CommandInfo command = 7;
getCommandOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasContainer
in interface Protos.TaskInfoOrBuilder
public 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;
getContainer
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setContainer(Protos.ContainerInfo value)
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;
public Protos.TaskInfo.Builder setContainer(Protos.ContainerInfo.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeContainer(Protos.ContainerInfo value)
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;
public Protos.TaskInfo.Builder clearContainer()
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;
public Protos.ContainerInfo.Builder getContainerBuilder()
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;
public 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;
getContainerOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasHealthCheck
in interface Protos.TaskInfoOrBuilder
public 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;
getHealthCheck
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setHealthCheck(Protos.HealthCheck value)
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;
public Protos.TaskInfo.Builder setHealthCheck(Protos.HealthCheck.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeHealthCheck(Protos.HealthCheck value)
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;
public Protos.TaskInfo.Builder clearHealthCheck()
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;
public Protos.HealthCheck.Builder getHealthCheckBuilder()
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;
public 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;
getHealthCheckOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasCheck
in interface Protos.TaskInfoOrBuilder
public 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;
getCheck
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setCheck(Protos.CheckInfo value)
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;
public Protos.TaskInfo.Builder setCheck(Protos.CheckInfo.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeCheck(Protos.CheckInfo value)
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;
public Protos.TaskInfo.Builder clearCheck()
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;
public Protos.CheckInfo.Builder getCheckBuilder()
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;
public 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;
getCheckOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasKillPolicy
in interface Protos.TaskInfoOrBuilder
public 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;
getKillPolicy
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setKillPolicy(Protos.KillPolicy value)
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;
public Protos.TaskInfo.Builder setKillPolicy(Protos.KillPolicy.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeKillPolicy(Protos.KillPolicy value)
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;
public Protos.TaskInfo.Builder clearKillPolicy()
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;
public Protos.KillPolicy.Builder getKillPolicyBuilder()
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;
public 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;
getKillPolicyOrBuilder
in interface Protos.TaskInfoOrBuilder
public boolean hasData()
optional bytes data = 6;
hasData
in interface Protos.TaskInfoOrBuilder
public com.google.protobuf.ByteString getData()
optional bytes data = 6;
getData
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setData(com.google.protobuf.ByteString value)
optional bytes data = 6;
public Protos.TaskInfo.Builder clearData()
optional bytes data = 6;
public 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;
hasLabels
in interface Protos.TaskInfoOrBuilder
public 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;
getLabels
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setLabels(Protos.Labels value)
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;
public Protos.TaskInfo.Builder setLabels(Protos.Labels.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeLabels(Protos.Labels value)
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;
public Protos.TaskInfo.Builder clearLabels()
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;
public Protos.Labels.Builder getLabelsBuilder()
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;
public 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;
getLabelsOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasDiscovery
in interface Protos.TaskInfoOrBuilder
public 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;
getDiscovery
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setDiscovery(Protos.DiscoveryInfo value)
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;
public Protos.TaskInfo.Builder setDiscovery(Protos.DiscoveryInfo.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeDiscovery(Protos.DiscoveryInfo value)
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;
public Protos.TaskInfo.Builder clearDiscovery()
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;
public Protos.DiscoveryInfo.Builder getDiscoveryBuilder()
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;
public 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;
getDiscoveryOrBuilder
in interface Protos.TaskInfoOrBuilder
public 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;
hasMaxCompletionTime
in interface Protos.TaskInfoOrBuilder
public 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;
getMaxCompletionTime
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder setMaxCompletionTime(Protos.DurationInfo value)
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;
public Protos.TaskInfo.Builder setMaxCompletionTime(Protos.DurationInfo.Builder builderForValue)
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;
public Protos.TaskInfo.Builder mergeMaxCompletionTime(Protos.DurationInfo value)
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;
public Protos.TaskInfo.Builder clearMaxCompletionTime()
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;
public Protos.DurationInfo.Builder getMaxCompletionTimeBuilder()
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;
public 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;
getMaxCompletionTimeOrBuilder
in interface Protos.TaskInfoOrBuilder
public int getLimitsCount()
Protos.TaskInfoOrBuilder
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
getLimitsCount
in interface Protos.TaskInfoOrBuilder
public boolean containsLimits(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
containsLimits
in interface Protos.TaskInfoOrBuilder
@Deprecated public java.util.Map<java.lang.String,Protos.Value.Scalar> getLimits()
getLimitsMap()
instead.getLimits
in interface Protos.TaskInfoOrBuilder
public java.util.Map<java.lang.String,Protos.Value.Scalar> getLimitsMap()
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
getLimitsMap
in interface Protos.TaskInfoOrBuilder
public 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;
getLimitsOrDefault
in interface Protos.TaskInfoOrBuilder
public Protos.Value.Scalar getLimitsOrThrow(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
getLimitsOrThrow
in interface Protos.TaskInfoOrBuilder
public Protos.TaskInfo.Builder clearLimits()
public Protos.TaskInfo.Builder removeLimits(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
@Deprecated public java.util.Map<java.lang.String,Protos.Value.Scalar> getMutableLimits()
public Protos.TaskInfo.Builder putLimits(java.lang.String key, Protos.Value.Scalar value)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
public Protos.TaskInfo.Builder putAllLimits(java.util.Map<java.lang.String,Protos.Value.Scalar> values)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 15;
public final Protos.TaskInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.TaskInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)