public static final class Protos.Task.Builder extends <any> implements Protos.TaskOrBuilder
Describes a task, similar to `TaskInfo`. `Task` is used in some of the Mesos messages found below. `Task` is used instead of `TaskInfo` if: 1) we need additional IDs, such as a specific framework, executor, or agent; or 2) we do not need the additional data, such as the command run by the task. These additional fields may be large and unnecessary for some Mesos messages. `Task` is generally constructed from a `TaskInfo`. See protobuf::createTask.Protobuf type
mesos.Task
Modifier and Type | Method and Description |
---|---|
Protos.Task.Builder |
addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
addAllStatuses(java.lang.Iterable<? extends Protos.TaskStatus> values)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Task.Builder |
addResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
addResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
addResources(Protos.Resource value)
repeated .mesos.Resource resources = 7; |
Protos.Resource.Builder |
addResourcesBuilder()
repeated .mesos.Resource resources = 7; |
Protos.Resource.Builder |
addResourcesBuilder(int index)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
addStatuses(int index,
Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
addStatuses(int index,
Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
addStatuses(Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
addStatuses(Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8; |
Protos.TaskStatus.Builder |
addStatusesBuilder()
repeated .mesos.TaskStatus statuses = 8; |
Protos.TaskStatus.Builder |
addStatusesBuilder(int index)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task |
build() |
Protos.Task |
buildPartial() |
Protos.Task.Builder |
clear() |
Protos.Task.Builder |
clearContainer()
Container information for the task.
|
Protos.Task.Builder |
clearDiscovery()
Service discovery information for the task.
|
Protos.Task.Builder |
clearExecutorId()
optional .mesos.ExecutorID executor_id = 4; |
Protos.Task.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Protos.Task.Builder |
clearFrameworkId()
required .mesos.FrameworkID framework_id = 3; |
Protos.Task.Builder |
clearHealthCheck()
optional .mesos.HealthCheck health_check = 15; |
Protos.Task.Builder |
clearKillPolicy()
The kill policy used for this task when it is killed.
|
Protos.Task.Builder |
clearLabels()
optional .mesos.Labels labels = 11; |
Protos.Task.Builder |
clearLimits() |
Protos.Task.Builder |
clearName()
required string name = 1; |
Protos.Task.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Protos.Task.Builder |
clearResources()
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
clearSlaveId()
required .mesos.SlaveID slave_id = 5; |
Protos.Task.Builder |
clearState()
Latest state of the task.
|
Protos.Task.Builder |
clearStatuses()
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
clearStatusUpdateState()
These fields correspond to the state and uuid of the latest
status update forwarded to the master.
|
Protos.Task.Builder |
clearStatusUpdateUuid()
optional bytes status_update_uuid = 10; |
Protos.Task.Builder |
clearTaskId()
required .mesos.TaskID task_id = 2; |
Protos.Task.Builder |
clearUser()
Specific user under which task is running.
|
Protos.Task.Builder |
clone() |
boolean |
containsLimits(java.lang.String key)
Resource limits associated with the task.
|
Protos.ContainerInfo |
getContainer()
Container information for the task.
|
Protos.ContainerInfo.Builder |
getContainerBuilder()
Container information for the task.
|
Protos.ContainerInfoOrBuilder |
getContainerOrBuilder()
Container information for the task.
|
Protos.Task |
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.ExecutorID |
getExecutorId()
optional .mesos.ExecutorID executor_id = 4; |
Protos.ExecutorID.Builder |
getExecutorIdBuilder()
optional .mesos.ExecutorID executor_id = 4; |
Protos.ExecutorIDOrBuilder |
getExecutorIdOrBuilder()
optional .mesos.ExecutorID executor_id = 4; |
Protos.FrameworkID |
getFrameworkId()
required .mesos.FrameworkID framework_id = 3; |
Protos.FrameworkID.Builder |
getFrameworkIdBuilder()
required .mesos.FrameworkID framework_id = 3; |
Protos.FrameworkIDOrBuilder |
getFrameworkIdOrBuilder()
required .mesos.FrameworkID framework_id = 3; |
Protos.HealthCheck |
getHealthCheck()
optional .mesos.HealthCheck health_check = 15; |
Protos.HealthCheck.Builder |
getHealthCheckBuilder()
optional .mesos.HealthCheck health_check = 15; |
Protos.HealthCheckOrBuilder |
getHealthCheckOrBuilder()
optional .mesos.HealthCheck health_check = 15; |
Protos.KillPolicy |
getKillPolicy()
The kill policy used for this task when it is killed.
|
Protos.KillPolicy.Builder |
getKillPolicyBuilder()
The kill policy used for this task when it is killed.
|
Protos.KillPolicyOrBuilder |
getKillPolicyOrBuilder()
The kill policy used for this task when it is killed.
|
Protos.Labels |
getLabels()
optional .mesos.Labels labels = 11; |
Protos.Labels.Builder |
getLabelsBuilder()
optional .mesos.Labels labels = 11; |
Protos.LabelsOrBuilder |
getLabelsOrBuilder()
optional .mesos.Labels labels = 11; |
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.
|
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 = 7; |
Protos.Resource.Builder |
getResourcesBuilder(int index)
repeated .mesos.Resource resources = 7; |
java.util.List<Protos.Resource.Builder> |
getResourcesBuilderList()
repeated .mesos.Resource resources = 7; |
int |
getResourcesCount()
repeated .mesos.Resource resources = 7; |
java.util.List<Protos.Resource> |
getResourcesList()
repeated .mesos.Resource resources = 7; |
Protos.ResourceOrBuilder |
getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 7; |
java.util.List<? extends Protos.ResourceOrBuilder> |
getResourcesOrBuilderList()
repeated .mesos.Resource resources = 7; |
Protos.SlaveID |
getSlaveId()
required .mesos.SlaveID slave_id = 5; |
Protos.SlaveID.Builder |
getSlaveIdBuilder()
required .mesos.SlaveID slave_id = 5; |
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 5; |
Protos.TaskState |
getState()
Latest state of the task.
|
Protos.TaskStatus |
getStatuses(int index)
repeated .mesos.TaskStatus statuses = 8; |
Protos.TaskStatus.Builder |
getStatusesBuilder(int index)
repeated .mesos.TaskStatus statuses = 8; |
java.util.List<Protos.TaskStatus.Builder> |
getStatusesBuilderList()
repeated .mesos.TaskStatus statuses = 8; |
int |
getStatusesCount()
repeated .mesos.TaskStatus statuses = 8; |
java.util.List<Protos.TaskStatus> |
getStatusesList()
repeated .mesos.TaskStatus statuses = 8; |
Protos.TaskStatusOrBuilder |
getStatusesOrBuilder(int index)
repeated .mesos.TaskStatus statuses = 8; |
java.util.List<? extends Protos.TaskStatusOrBuilder> |
getStatusesOrBuilderList()
repeated .mesos.TaskStatus statuses = 8; |
Protos.TaskState |
getStatusUpdateState()
These fields correspond to the state and uuid of the latest
status update forwarded to the master.
|
com.google.protobuf.ByteString |
getStatusUpdateUuid()
optional bytes status_update_uuid = 10; |
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; |
java.lang.String |
getUser()
Specific user under which task is running.
|
com.google.protobuf.ByteString |
getUserBytes()
Specific user under which task is running.
|
boolean |
hasContainer()
Container information for the task.
|
boolean |
hasDiscovery()
Service discovery information for the task.
|
boolean |
hasExecutorId()
optional .mesos.ExecutorID executor_id = 4; |
boolean |
hasFrameworkId()
required .mesos.FrameworkID framework_id = 3; |
boolean |
hasHealthCheck()
optional .mesos.HealthCheck health_check = 15; |
boolean |
hasKillPolicy()
The kill policy used for this task when it is killed.
|
boolean |
hasLabels()
optional .mesos.Labels labels = 11; |
boolean |
hasName()
required string name = 1; |
boolean |
hasSlaveId()
required .mesos.SlaveID slave_id = 5; |
boolean |
hasState()
Latest state of the task.
|
boolean |
hasStatusUpdateState()
These fields correspond to the state and uuid of the latest
status update forwarded to the master.
|
boolean |
hasStatusUpdateUuid()
optional bytes status_update_uuid = 10; |
boolean |
hasTaskId()
required .mesos.TaskID task_id = 2; |
boolean |
hasUser()
Specific user under which task is running.
|
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.Task.Builder |
mergeContainer(Protos.ContainerInfo value)
Container information for the task.
|
Protos.Task.Builder |
mergeDiscovery(Protos.DiscoveryInfo value)
Service discovery information for the task.
|
Protos.Task.Builder |
mergeExecutorId(Protos.ExecutorID value)
optional .mesos.ExecutorID executor_id = 4; |
Protos.Task.Builder |
mergeFrameworkId(Protos.FrameworkID value)
required .mesos.FrameworkID framework_id = 3; |
Protos.Task.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Protos.Task.Builder |
mergeFrom(com.google.protobuf.Message other) |
Protos.Task.Builder |
mergeHealthCheck(Protos.HealthCheck value)
optional .mesos.HealthCheck health_check = 15; |
Protos.Task.Builder |
mergeKillPolicy(Protos.KillPolicy value)
The kill policy used for this task when it is killed.
|
Protos.Task.Builder |
mergeLabels(Protos.Labels value)
optional .mesos.Labels labels = 11; |
Protos.Task.Builder |
mergeSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 5; |
Protos.Task.Builder |
mergeTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2; |
Protos.Task.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Task.Builder |
putAllLimits(java.util.Map<java.lang.String,Protos.Value.Scalar> values)
Resource limits associated with the task.
|
Protos.Task.Builder |
putLimits(java.lang.String key,
Protos.Value.Scalar value)
Resource limits associated with the task.
|
Protos.Task.Builder |
removeLimits(java.lang.String key)
Resource limits associated with the task.
|
Protos.Task.Builder |
removeResources(int index)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
removeStatuses(int index)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
setContainer(Protos.ContainerInfo.Builder builderForValue)
Container information for the task.
|
Protos.Task.Builder |
setContainer(Protos.ContainerInfo value)
Container information for the task.
|
Protos.Task.Builder |
setDiscovery(Protos.DiscoveryInfo.Builder builderForValue)
Service discovery information for the task.
|
Protos.Task.Builder |
setDiscovery(Protos.DiscoveryInfo value)
Service discovery information for the task.
|
Protos.Task.Builder |
setExecutorId(Protos.ExecutorID.Builder builderForValue)
optional .mesos.ExecutorID executor_id = 4; |
Protos.Task.Builder |
setExecutorId(Protos.ExecutorID value)
optional .mesos.ExecutorID executor_id = 4; |
Protos.Task.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Protos.Task.Builder |
setFrameworkId(Protos.FrameworkID.Builder builderForValue)
required .mesos.FrameworkID framework_id = 3; |
Protos.Task.Builder |
setFrameworkId(Protos.FrameworkID value)
required .mesos.FrameworkID framework_id = 3; |
Protos.Task.Builder |
setHealthCheck(Protos.HealthCheck.Builder builderForValue)
optional .mesos.HealthCheck health_check = 15; |
Protos.Task.Builder |
setHealthCheck(Protos.HealthCheck value)
optional .mesos.HealthCheck health_check = 15; |
Protos.Task.Builder |
setKillPolicy(Protos.KillPolicy.Builder builderForValue)
The kill policy used for this task when it is killed.
|
Protos.Task.Builder |
setKillPolicy(Protos.KillPolicy value)
The kill policy used for this task when it is killed.
|
Protos.Task.Builder |
setLabels(Protos.Labels.Builder builderForValue)
optional .mesos.Labels labels = 11; |
Protos.Task.Builder |
setLabels(Protos.Labels value)
optional .mesos.Labels labels = 11; |
Protos.Task.Builder |
setName(java.lang.String value)
required string name = 1; |
Protos.Task.Builder |
setNameBytes(com.google.protobuf.ByteString value)
required string name = 1; |
Protos.Task.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Protos.Task.Builder |
setResources(int index,
Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
setResources(int index,
Protos.Resource value)
repeated .mesos.Resource resources = 7; |
Protos.Task.Builder |
setSlaveId(Protos.SlaveID.Builder builderForValue)
required .mesos.SlaveID slave_id = 5; |
Protos.Task.Builder |
setSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 5; |
Protos.Task.Builder |
setState(Protos.TaskState value)
Latest state of the task.
|
Protos.Task.Builder |
setStatuses(int index,
Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
setStatuses(int index,
Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8; |
Protos.Task.Builder |
setStatusUpdateState(Protos.TaskState value)
These fields correspond to the state and uuid of the latest
status update forwarded to the master.
|
Protos.Task.Builder |
setStatusUpdateUuid(com.google.protobuf.ByteString value)
optional bytes status_update_uuid = 10; |
Protos.Task.Builder |
setTaskId(Protos.TaskID.Builder builderForValue)
required .mesos.TaskID task_id = 2; |
Protos.Task.Builder |
setTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2; |
Protos.Task.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Protos.Task.Builder |
setUser(java.lang.String value)
Specific user under which task is running.
|
Protos.Task.Builder |
setUserBytes(com.google.protobuf.ByteString value)
Specific user under which task is running.
|
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.Task.Builder clear()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
public Protos.Task getDefaultInstanceForType()
public Protos.Task build()
public Protos.Task buildPartial()
public Protos.Task.Builder clone()
public Protos.Task.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Task.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
public Protos.Task.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
public Protos.Task.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
public Protos.Task.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
public Protos.Task.Builder mergeFrom(com.google.protobuf.Message other)
public final boolean isInitialized()
public Protos.Task.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.TaskOrBuilder
public java.lang.String getName()
required string name = 1;
getName
in interface Protos.TaskOrBuilder
public com.google.protobuf.ByteString getNameBytes()
required string name = 1;
getNameBytes
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setName(java.lang.String value)
required string name = 1;
public Protos.Task.Builder clearName()
required string name = 1;
public Protos.Task.Builder setNameBytes(com.google.protobuf.ByteString value)
required string name = 1;
public boolean hasTaskId()
required .mesos.TaskID task_id = 2;
hasTaskId
in interface Protos.TaskOrBuilder
public Protos.TaskID getTaskId()
required .mesos.TaskID task_id = 2;
getTaskId
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2;
public Protos.Task.Builder setTaskId(Protos.TaskID.Builder builderForValue)
required .mesos.TaskID task_id = 2;
public Protos.Task.Builder mergeTaskId(Protos.TaskID value)
required .mesos.TaskID task_id = 2;
public Protos.Task.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.TaskOrBuilder
public boolean hasFrameworkId()
required .mesos.FrameworkID framework_id = 3;
hasFrameworkId
in interface Protos.TaskOrBuilder
public Protos.FrameworkID getFrameworkId()
required .mesos.FrameworkID framework_id = 3;
getFrameworkId
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setFrameworkId(Protos.FrameworkID value)
required .mesos.FrameworkID framework_id = 3;
public Protos.Task.Builder setFrameworkId(Protos.FrameworkID.Builder builderForValue)
required .mesos.FrameworkID framework_id = 3;
public Protos.Task.Builder mergeFrameworkId(Protos.FrameworkID value)
required .mesos.FrameworkID framework_id = 3;
public Protos.Task.Builder clearFrameworkId()
required .mesos.FrameworkID framework_id = 3;
public Protos.FrameworkID.Builder getFrameworkIdBuilder()
required .mesos.FrameworkID framework_id = 3;
public Protos.FrameworkIDOrBuilder getFrameworkIdOrBuilder()
required .mesos.FrameworkID framework_id = 3;
getFrameworkIdOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasExecutorId()
optional .mesos.ExecutorID executor_id = 4;
hasExecutorId
in interface Protos.TaskOrBuilder
public Protos.ExecutorID getExecutorId()
optional .mesos.ExecutorID executor_id = 4;
getExecutorId
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setExecutorId(Protos.ExecutorID value)
optional .mesos.ExecutorID executor_id = 4;
public Protos.Task.Builder setExecutorId(Protos.ExecutorID.Builder builderForValue)
optional .mesos.ExecutorID executor_id = 4;
public Protos.Task.Builder mergeExecutorId(Protos.ExecutorID value)
optional .mesos.ExecutorID executor_id = 4;
public Protos.Task.Builder clearExecutorId()
optional .mesos.ExecutorID executor_id = 4;
public Protos.ExecutorID.Builder getExecutorIdBuilder()
optional .mesos.ExecutorID executor_id = 4;
public Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder()
optional .mesos.ExecutorID executor_id = 4;
getExecutorIdOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasSlaveId()
required .mesos.SlaveID slave_id = 5;
hasSlaveId
in interface Protos.TaskOrBuilder
public Protos.SlaveID getSlaveId()
required .mesos.SlaveID slave_id = 5;
getSlaveId
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 5;
public Protos.Task.Builder setSlaveId(Protos.SlaveID.Builder builderForValue)
required .mesos.SlaveID slave_id = 5;
public Protos.Task.Builder mergeSlaveId(Protos.SlaveID value)
required .mesos.SlaveID slave_id = 5;
public Protos.Task.Builder clearSlaveId()
required .mesos.SlaveID slave_id = 5;
public Protos.SlaveID.Builder getSlaveIdBuilder()
required .mesos.SlaveID slave_id = 5;
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
required .mesos.SlaveID slave_id = 5;
getSlaveIdOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasState()
Latest state of the task.
required .mesos.TaskState state = 6;
hasState
in interface Protos.TaskOrBuilder
public Protos.TaskState getState()
Latest state of the task.
required .mesos.TaskState state = 6;
getState
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setState(Protos.TaskState value)
Latest state of the task.
required .mesos.TaskState state = 6;
public Protos.Task.Builder clearState()
Latest state of the task.
required .mesos.TaskState state = 6;
public java.util.List<Protos.Resource> getResourcesList()
repeated .mesos.Resource resources = 7;
getResourcesList
in interface Protos.TaskOrBuilder
public int getResourcesCount()
repeated .mesos.Resource resources = 7;
getResourcesCount
in interface Protos.TaskOrBuilder
public Protos.Resource getResources(int index)
repeated .mesos.Resource resources = 7;
getResources
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder setResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder addResources(Protos.Resource value)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder addResources(int index, Protos.Resource value)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder addResources(Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder addResources(int index, Protos.Resource.Builder builderForValue)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder addAllResources(java.lang.Iterable<? extends Protos.Resource> values)
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder clearResources()
repeated .mesos.Resource resources = 7;
public Protos.Task.Builder removeResources(int index)
repeated .mesos.Resource resources = 7;
public Protos.Resource.Builder getResourcesBuilder(int index)
repeated .mesos.Resource resources = 7;
public Protos.ResourceOrBuilder getResourcesOrBuilder(int index)
repeated .mesos.Resource resources = 7;
getResourcesOrBuilder
in interface Protos.TaskOrBuilder
public java.util.List<? extends Protos.ResourceOrBuilder> getResourcesOrBuilderList()
repeated .mesos.Resource resources = 7;
getResourcesOrBuilderList
in interface Protos.TaskOrBuilder
public Protos.Resource.Builder addResourcesBuilder()
repeated .mesos.Resource resources = 7;
public Protos.Resource.Builder addResourcesBuilder(int index)
repeated .mesos.Resource resources = 7;
public java.util.List<Protos.Resource.Builder> getResourcesBuilderList()
repeated .mesos.Resource resources = 7;
public java.util.List<Protos.TaskStatus> getStatusesList()
repeated .mesos.TaskStatus statuses = 8;
getStatusesList
in interface Protos.TaskOrBuilder
public int getStatusesCount()
repeated .mesos.TaskStatus statuses = 8;
getStatusesCount
in interface Protos.TaskOrBuilder
public Protos.TaskStatus getStatuses(int index)
repeated .mesos.TaskStatus statuses = 8;
getStatuses
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setStatuses(int index, Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder setStatuses(int index, Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder addStatuses(Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder addStatuses(int index, Protos.TaskStatus value)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder addStatuses(Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder addStatuses(int index, Protos.TaskStatus.Builder builderForValue)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder addAllStatuses(java.lang.Iterable<? extends Protos.TaskStatus> values)
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder clearStatuses()
repeated .mesos.TaskStatus statuses = 8;
public Protos.Task.Builder removeStatuses(int index)
repeated .mesos.TaskStatus statuses = 8;
public Protos.TaskStatus.Builder getStatusesBuilder(int index)
repeated .mesos.TaskStatus statuses = 8;
public Protos.TaskStatusOrBuilder getStatusesOrBuilder(int index)
repeated .mesos.TaskStatus statuses = 8;
getStatusesOrBuilder
in interface Protos.TaskOrBuilder
public java.util.List<? extends Protos.TaskStatusOrBuilder> getStatusesOrBuilderList()
repeated .mesos.TaskStatus statuses = 8;
getStatusesOrBuilderList
in interface Protos.TaskOrBuilder
public Protos.TaskStatus.Builder addStatusesBuilder()
repeated .mesos.TaskStatus statuses = 8;
public Protos.TaskStatus.Builder addStatusesBuilder(int index)
repeated .mesos.TaskStatus statuses = 8;
public java.util.List<Protos.TaskStatus.Builder> getStatusesBuilderList()
repeated .mesos.TaskStatus statuses = 8;
public boolean hasStatusUpdateState()
These fields correspond to the state and uuid of the latest status update forwarded to the master. NOTE: Either both the fields must be set or both must be unset.
optional .mesos.TaskState status_update_state = 9;
hasStatusUpdateState
in interface Protos.TaskOrBuilder
public Protos.TaskState getStatusUpdateState()
These fields correspond to the state and uuid of the latest status update forwarded to the master. NOTE: Either both the fields must be set or both must be unset.
optional .mesos.TaskState status_update_state = 9;
getStatusUpdateState
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setStatusUpdateState(Protos.TaskState value)
These fields correspond to the state and uuid of the latest status update forwarded to the master. NOTE: Either both the fields must be set or both must be unset.
optional .mesos.TaskState status_update_state = 9;
public Protos.Task.Builder clearStatusUpdateState()
These fields correspond to the state and uuid of the latest status update forwarded to the master. NOTE: Either both the fields must be set or both must be unset.
optional .mesos.TaskState status_update_state = 9;
public boolean hasStatusUpdateUuid()
optional bytes status_update_uuid = 10;
hasStatusUpdateUuid
in interface Protos.TaskOrBuilder
public com.google.protobuf.ByteString getStatusUpdateUuid()
optional bytes status_update_uuid = 10;
getStatusUpdateUuid
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setStatusUpdateUuid(com.google.protobuf.ByteString value)
optional bytes status_update_uuid = 10;
public Protos.Task.Builder clearStatusUpdateUuid()
optional bytes status_update_uuid = 10;
public boolean hasLabels()
optional .mesos.Labels labels = 11;
hasLabels
in interface Protos.TaskOrBuilder
public Protos.Labels getLabels()
optional .mesos.Labels labels = 11;
getLabels
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setLabels(Protos.Labels value)
optional .mesos.Labels labels = 11;
public Protos.Task.Builder setLabels(Protos.Labels.Builder builderForValue)
optional .mesos.Labels labels = 11;
public Protos.Task.Builder mergeLabels(Protos.Labels value)
optional .mesos.Labels labels = 11;
public Protos.Task.Builder clearLabels()
optional .mesos.Labels labels = 11;
public Protos.Labels.Builder getLabelsBuilder()
optional .mesos.Labels labels = 11;
public Protos.LabelsOrBuilder getLabelsOrBuilder()
optional .mesos.Labels labels = 11;
getLabelsOrBuilder
in interface Protos.TaskOrBuilder
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 = 12;
hasDiscovery
in interface Protos.TaskOrBuilder
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 = 12;
getDiscovery
in interface Protos.TaskOrBuilder
public Protos.Task.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 = 12;
public Protos.Task.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 = 12;
public Protos.Task.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 = 12;
public Protos.Task.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 = 12;
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 = 12;
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 = 12;
getDiscoveryOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasContainer()
Container information for the task.
optional .mesos.ContainerInfo container = 13;
hasContainer
in interface Protos.TaskOrBuilder
public Protos.ContainerInfo getContainer()
Container information for the task.
optional .mesos.ContainerInfo container = 13;
getContainer
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setContainer(Protos.ContainerInfo value)
Container information for the task.
optional .mesos.ContainerInfo container = 13;
public Protos.Task.Builder setContainer(Protos.ContainerInfo.Builder builderForValue)
Container information for the task.
optional .mesos.ContainerInfo container = 13;
public Protos.Task.Builder mergeContainer(Protos.ContainerInfo value)
Container information for the task.
optional .mesos.ContainerInfo container = 13;
public Protos.Task.Builder clearContainer()
Container information for the task.
optional .mesos.ContainerInfo container = 13;
public Protos.ContainerInfo.Builder getContainerBuilder()
Container information for the task.
optional .mesos.ContainerInfo container = 13;
public Protos.ContainerInfoOrBuilder getContainerOrBuilder()
Container information for the task.
optional .mesos.ContainerInfo container = 13;
getContainerOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasHealthCheck()
optional .mesos.HealthCheck health_check = 15;
hasHealthCheck
in interface Protos.TaskOrBuilder
public Protos.HealthCheck getHealthCheck()
optional .mesos.HealthCheck health_check = 15;
getHealthCheck
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setHealthCheck(Protos.HealthCheck value)
optional .mesos.HealthCheck health_check = 15;
public Protos.Task.Builder setHealthCheck(Protos.HealthCheck.Builder builderForValue)
optional .mesos.HealthCheck health_check = 15;
public Protos.Task.Builder mergeHealthCheck(Protos.HealthCheck value)
optional .mesos.HealthCheck health_check = 15;
public Protos.Task.Builder clearHealthCheck()
optional .mesos.HealthCheck health_check = 15;
public Protos.HealthCheck.Builder getHealthCheckBuilder()
optional .mesos.HealthCheck health_check = 15;
public Protos.HealthCheckOrBuilder getHealthCheckOrBuilder()
optional .mesos.HealthCheck health_check = 15;
getHealthCheckOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasKillPolicy()
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
hasKillPolicy
in interface Protos.TaskOrBuilder
public Protos.KillPolicy getKillPolicy()
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
getKillPolicy
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setKillPolicy(Protos.KillPolicy value)
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
public Protos.Task.Builder setKillPolicy(Protos.KillPolicy.Builder builderForValue)
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
public Protos.Task.Builder mergeKillPolicy(Protos.KillPolicy value)
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
public Protos.Task.Builder clearKillPolicy()
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
public Protos.KillPolicy.Builder getKillPolicyBuilder()
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
public Protos.KillPolicyOrBuilder getKillPolicyOrBuilder()
The kill policy used for this task when it is killed. It's possible for this policy to be overridden by the scheduler when killing the task.
optional .mesos.KillPolicy kill_policy = 16;
getKillPolicyOrBuilder
in interface Protos.TaskOrBuilder
public boolean hasUser()
Specific user under which task is running.
optional string user = 14;
hasUser
in interface Protos.TaskOrBuilder
public java.lang.String getUser()
Specific user under which task is running.
optional string user = 14;
getUser
in interface Protos.TaskOrBuilder
public com.google.protobuf.ByteString getUserBytes()
Specific user under which task is running.
optional string user = 14;
getUserBytes
in interface Protos.TaskOrBuilder
public Protos.Task.Builder setUser(java.lang.String value)
Specific user under which task is running.
optional string user = 14;
public Protos.Task.Builder clearUser()
Specific user under which task is running.
optional string user = 14;
public Protos.Task.Builder setUserBytes(com.google.protobuf.ByteString value)
Specific user under which task is running.
optional string user = 14;
public int getLimitsCount()
Protos.TaskOrBuilder
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
getLimitsCount
in interface Protos.TaskOrBuilder
public boolean containsLimits(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
containsLimits
in interface Protos.TaskOrBuilder
@Deprecated public java.util.Map<java.lang.String,Protos.Value.Scalar> getLimits()
getLimitsMap()
instead.getLimits
in interface Protos.TaskOrBuilder
public java.util.Map<java.lang.String,Protos.Value.Scalar> getLimitsMap()
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
getLimitsMap
in interface Protos.TaskOrBuilder
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 = 17;
getLimitsOrDefault
in interface Protos.TaskOrBuilder
public Protos.Value.Scalar getLimitsOrThrow(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
getLimitsOrThrow
in interface Protos.TaskOrBuilder
public Protos.Task.Builder clearLimits()
public Protos.Task.Builder removeLimits(java.lang.String key)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
@Deprecated public java.util.Map<java.lang.String,Protos.Value.Scalar> getMutableLimits()
public Protos.Task.Builder putLimits(java.lang.String key, Protos.Value.Scalar value)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
public Protos.Task.Builder putAllLimits(java.util.Map<java.lang.String,Protos.Value.Scalar> values)
Resource limits associated with the task.
map<string, .mesos.Value.Scalar> limits = 17;
public final Protos.Task.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
public final Protos.Task.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)