public static final class Protos.TaskStatus extends com.google.protobuf.GeneratedMessageV3 implements Protos.TaskStatusOrBuilder
Describes the current status of a task.Protobuf type
mesos.TaskStatus
Modifier and Type | Class and Description |
---|---|
static class |
Protos.TaskStatus.Builder
Describes the current status of a task.
|
static class |
Protos.TaskStatus.Reason
Detailed reason for the task status update.
|
static class |
Protos.TaskStatus.Source
Describes the source of the task status update.
|
Modifier and Type | Field and Description |
---|---|
static int |
CHECK_STATUS_FIELD_NUMBER |
static int |
CONTAINER_STATUS_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
EXECUTOR_ID_FIELD_NUMBER |
static int |
HEALTHY_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LIMITATION_FIELD_NUMBER |
static int |
MESSAGE_FIELD_NUMBER |
static <any> |
PARSER
Deprecated.
|
static int |
REASON_FIELD_NUMBER |
static int |
SLAVE_ID_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
TASK_ID_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
UNREACHABLE_TIME_FIELD_NUMBER |
static int |
UUID_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Protos.CheckStatusInfo |
getCheckStatus()
Contains check status for the check specified in the corresponding
`TaskInfo`.
|
Protos.CheckStatusInfoOrBuilder |
getCheckStatusOrBuilder()
Contains check status for the check specified in the corresponding
`TaskInfo`.
|
Protos.ContainerStatus |
getContainerStatus()
Container related information that is resolved dynamically such as
network address.
|
Protos.ContainerStatusOrBuilder |
getContainerStatusOrBuilder()
Container related information that is resolved dynamically such as
network address.
|
com.google.protobuf.ByteString |
getData()
optional bytes data = 3; |
static Protos.TaskStatus |
getDefaultInstance() |
Protos.TaskStatus |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Protos.ExecutorID |
getExecutorId()
TODO(benh): Use in master/slave.
|
Protos.ExecutorIDOrBuilder |
getExecutorIdOrBuilder()
TODO(benh): Use in master/slave.
|
boolean |
getHealthy()
Describes whether the task has been determined to be healthy (true) or
unhealthy (false) according to the `health_check` field in `TaskInfo`.
|
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.
|
Protos.TaskResourceLimitation |
getLimitation()
If the reason field indicates a container resource limitation,
this field optionally contains additional information.
|
Protos.TaskResourceLimitationOrBuilder |
getLimitationOrBuilder()
If the reason field indicates a container resource limitation,
this field optionally contains additional information.
|
java.lang.String |
getMessage()
Possible message explaining state.
|
com.google.protobuf.ByteString |
getMessageBytes()
Possible message explaining state.
|
<any> |
getParserForType() |
Protos.TaskStatus.Reason |
getReason()
optional .mesos.TaskStatus.Reason reason = 10; |
int |
getSerializedSize() |
Protos.SlaveID |
getSlaveId()
optional .mesos.SlaveID slave_id = 5; |
Protos.SlaveIDOrBuilder |
getSlaveIdOrBuilder()
optional .mesos.SlaveID slave_id = 5; |
Protos.TaskStatus.Source |
getSource()
optional .mesos.TaskStatus.Source source = 9; |
Protos.TaskState |
getState()
required .mesos.TaskState state = 2; |
Protos.TaskID |
getTaskId()
required .mesos.TaskID task_id = 1; |
Protos.TaskIDOrBuilder |
getTaskIdOrBuilder()
required .mesos.TaskID task_id = 1; |
double |
getTimestamp()
optional double timestamp = 6; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Protos.TimeInfo |
getUnreachableTime()
The time (according to the master's clock) when the agent where
this task was running became unreachable.
|
Protos.TimeInfoOrBuilder |
getUnreachableTimeOrBuilder()
The time (according to the master's clock) when the agent where
this task was running became unreachable.
|
com.google.protobuf.ByteString |
getUuid()
Statuses that are delivered reliably to the scheduler will
include a 'uuid'.
|
boolean |
hasCheckStatus()
Contains check status for the check specified in the corresponding
`TaskInfo`.
|
boolean |
hasContainerStatus()
Container related information that is resolved dynamically such as
network address.
|
boolean |
hasData()
optional bytes data = 3; |
boolean |
hasExecutorId()
TODO(benh): Use in master/slave.
|
int |
hashCode() |
boolean |
hasHealthy()
Describes whether the task has been determined to be healthy (true) or
unhealthy (false) according to the `health_check` field in `TaskInfo`.
|
boolean |
hasLabels()
Labels are free-form key value pairs which are exposed through
master and slave endpoints.
|
boolean |
hasLimitation()
If the reason field indicates a container resource limitation,
this field optionally contains additional information.
|
boolean |
hasMessage()
Possible message explaining state.
|
boolean |
hasReason()
optional .mesos.TaskStatus.Reason reason = 10; |
boolean |
hasSlaveId()
optional .mesos.SlaveID slave_id = 5; |
boolean |
hasSource()
optional .mesos.TaskStatus.Source source = 9; |
boolean |
hasState()
required .mesos.TaskState state = 2; |
boolean |
hasTaskId()
required .mesos.TaskID task_id = 1; |
boolean |
hasTimestamp()
optional double timestamp = 6; |
boolean |
hasUnreachableTime()
The time (according to the master's clock) when the agent where
this task was running became unreachable.
|
boolean |
hasUuid()
Statuses that are delivered reliably to the scheduler will
include a 'uuid'.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Protos.TaskStatus.Builder |
newBuilder() |
static Protos.TaskStatus.Builder |
newBuilder(Protos.TaskStatus prototype) |
Protos.TaskStatus.Builder |
newBuilderForType() |
protected Protos.TaskStatus.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Protos.TaskStatus |
parseDelimitedFrom(java.io.InputStream input) |
static Protos.TaskStatus |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.TaskStatus |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.TaskStatus |
parseFrom(java.nio.ByteBuffer data) |
static Protos.TaskStatus |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.TaskStatus |
parseFrom(com.google.protobuf.ByteString data) |
static Protos.TaskStatus |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.TaskStatus |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Protos.TaskStatus |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Protos.TaskStatus |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static <any> |
parser() |
Protos.TaskStatus.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
public static final int TASK_ID_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int MESSAGE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER
public static final int REASON_FIELD_NUMBER
public static final int DATA_FIELD_NUMBER
public static final int SLAVE_ID_FIELD_NUMBER
public static final int EXECUTOR_ID_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
public static final int UUID_FIELD_NUMBER
public static final int HEALTHY_FIELD_NUMBER
public static final int CHECK_STATUS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int CONTAINER_STATUS_FIELD_NUMBER
public static final int UNREACHABLE_TIME_FIELD_NUMBER
public static final int LIMITATION_FIELD_NUMBER
@Deprecated public static final <any> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
public boolean hasTaskId()
required .mesos.TaskID task_id = 1;
hasTaskId
in interface Protos.TaskStatusOrBuilder
public Protos.TaskID getTaskId()
required .mesos.TaskID task_id = 1;
getTaskId
in interface Protos.TaskStatusOrBuilder
public Protos.TaskIDOrBuilder getTaskIdOrBuilder()
required .mesos.TaskID task_id = 1;
getTaskIdOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasState()
required .mesos.TaskState state = 2;
hasState
in interface Protos.TaskStatusOrBuilder
public Protos.TaskState getState()
required .mesos.TaskState state = 2;
getState
in interface Protos.TaskStatusOrBuilder
public boolean hasMessage()
Possible message explaining state.
optional string message = 4;
hasMessage
in interface Protos.TaskStatusOrBuilder
public java.lang.String getMessage()
Possible message explaining state.
optional string message = 4;
getMessage
in interface Protos.TaskStatusOrBuilder
public com.google.protobuf.ByteString getMessageBytes()
Possible message explaining state.
optional string message = 4;
getMessageBytes
in interface Protos.TaskStatusOrBuilder
public boolean hasSource()
optional .mesos.TaskStatus.Source source = 9;
hasSource
in interface Protos.TaskStatusOrBuilder
public Protos.TaskStatus.Source getSource()
optional .mesos.TaskStatus.Source source = 9;
getSource
in interface Protos.TaskStatusOrBuilder
public boolean hasReason()
optional .mesos.TaskStatus.Reason reason = 10;
hasReason
in interface Protos.TaskStatusOrBuilder
public Protos.TaskStatus.Reason getReason()
optional .mesos.TaskStatus.Reason reason = 10;
getReason
in interface Protos.TaskStatusOrBuilder
public boolean hasData()
optional bytes data = 3;
hasData
in interface Protos.TaskStatusOrBuilder
public com.google.protobuf.ByteString getData()
optional bytes data = 3;
getData
in interface Protos.TaskStatusOrBuilder
public boolean hasSlaveId()
optional .mesos.SlaveID slave_id = 5;
hasSlaveId
in interface Protos.TaskStatusOrBuilder
public Protos.SlaveID getSlaveId()
optional .mesos.SlaveID slave_id = 5;
getSlaveId
in interface Protos.TaskStatusOrBuilder
public Protos.SlaveIDOrBuilder getSlaveIdOrBuilder()
optional .mesos.SlaveID slave_id = 5;
getSlaveIdOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasExecutorId()
TODO(benh): Use in master/slave.
optional .mesos.ExecutorID executor_id = 7;
hasExecutorId
in interface Protos.TaskStatusOrBuilder
public Protos.ExecutorID getExecutorId()
TODO(benh): Use in master/slave.
optional .mesos.ExecutorID executor_id = 7;
getExecutorId
in interface Protos.TaskStatusOrBuilder
public Protos.ExecutorIDOrBuilder getExecutorIdOrBuilder()
TODO(benh): Use in master/slave.
optional .mesos.ExecutorID executor_id = 7;
getExecutorIdOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasTimestamp()
optional double timestamp = 6;
hasTimestamp
in interface Protos.TaskStatusOrBuilder
public double getTimestamp()
optional double timestamp = 6;
getTimestamp
in interface Protos.TaskStatusOrBuilder
public boolean hasUuid()
Statuses that are delivered reliably to the scheduler will include a 'uuid'. The status is considered delivered once it is acknowledged by the scheduler. Schedulers can choose to either explicitly acknowledge statuses or let the scheduler driver implicitly acknowledge (default). TODO(bmahler): This is currently overwritten in the scheduler driver and executor driver, but executors will need to set this to a valid RFC-4122 UUID if using the HTTP API.
optional bytes uuid = 11;
hasUuid
in interface Protos.TaskStatusOrBuilder
public com.google.protobuf.ByteString getUuid()
Statuses that are delivered reliably to the scheduler will include a 'uuid'. The status is considered delivered once it is acknowledged by the scheduler. Schedulers can choose to either explicitly acknowledge statuses or let the scheduler driver implicitly acknowledge (default). TODO(bmahler): This is currently overwritten in the scheduler driver and executor driver, but executors will need to set this to a valid RFC-4122 UUID if using the HTTP API.
optional bytes uuid = 11;
getUuid
in interface Protos.TaskStatusOrBuilder
public boolean hasHealthy()
Describes whether the task has been determined to be healthy (true) or unhealthy (false) according to the `health_check` field in `TaskInfo`.
optional bool healthy = 8;
hasHealthy
in interface Protos.TaskStatusOrBuilder
public boolean getHealthy()
Describes whether the task has been determined to be healthy (true) or unhealthy (false) according to the `health_check` field in `TaskInfo`.
optional bool healthy = 8;
getHealthy
in interface Protos.TaskStatusOrBuilder
public boolean hasCheckStatus()
Contains check status for the check specified in the corresponding `TaskInfo`. If no check has been specified, this field must be absent, otherwise it must be present even if the check status is not available yet. If the status update is triggered for a different reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain the last known value. NOTE: A check-related task status update is triggered if and only if the value or presence of any field in `CheckStatusInfo` changes. NOTE: Check support in built-in executors is experimental.
optional .mesos.CheckStatusInfo check_status = 15;
hasCheckStatus
in interface Protos.TaskStatusOrBuilder
public Protos.CheckStatusInfo getCheckStatus()
Contains check status for the check specified in the corresponding `TaskInfo`. If no check has been specified, this field must be absent, otherwise it must be present even if the check status is not available yet. If the status update is triggered for a different reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain the last known value. NOTE: A check-related task status update is triggered if and only if the value or presence of any field in `CheckStatusInfo` changes. NOTE: Check support in built-in executors is experimental.
optional .mesos.CheckStatusInfo check_status = 15;
getCheckStatus
in interface Protos.TaskStatusOrBuilder
public Protos.CheckStatusInfoOrBuilder getCheckStatusOrBuilder()
Contains check status for the check specified in the corresponding `TaskInfo`. If no check has been specified, this field must be absent, otherwise it must be present even if the check status is not available yet. If the status update is triggered for a different reason than `REASON_TASK_CHECK_STATUS_UPDATED`, this field will contain the last known value. NOTE: A check-related task status update is triggered if and only if the value or presence of any field in `CheckStatusInfo` changes. NOTE: Check support in built-in executors is experimental.
optional .mesos.CheckStatusInfo check_status = 15;
getCheckStatusOrBuilder
in interface Protos.TaskStatusOrBuilder
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 TaskStatus message with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 12;
hasLabels
in interface Protos.TaskStatusOrBuilder
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 TaskStatus message with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 12;
getLabels
in interface Protos.TaskStatusOrBuilder
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 TaskStatus message with light-weight meta-data. Labels should not contain duplicate key-value pairs.
optional .mesos.Labels labels = 12;
getLabelsOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasContainerStatus()
Container related information that is resolved dynamically such as network address.
optional .mesos.ContainerStatus container_status = 13;
hasContainerStatus
in interface Protos.TaskStatusOrBuilder
public Protos.ContainerStatus getContainerStatus()
Container related information that is resolved dynamically such as network address.
optional .mesos.ContainerStatus container_status = 13;
getContainerStatus
in interface Protos.TaskStatusOrBuilder
public Protos.ContainerStatusOrBuilder getContainerStatusOrBuilder()
Container related information that is resolved dynamically such as network address.
optional .mesos.ContainerStatus container_status = 13;
getContainerStatusOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasUnreachableTime()
The time (according to the master's clock) when the agent where this task was running became unreachable. This is only set on status updates for tasks running on agents that are unreachable (e.g., partitioned away from the master).
optional .mesos.TimeInfo unreachable_time = 14;
hasUnreachableTime
in interface Protos.TaskStatusOrBuilder
public Protos.TimeInfo getUnreachableTime()
The time (according to the master's clock) when the agent where this task was running became unreachable. This is only set on status updates for tasks running on agents that are unreachable (e.g., partitioned away from the master).
optional .mesos.TimeInfo unreachable_time = 14;
getUnreachableTime
in interface Protos.TaskStatusOrBuilder
public Protos.TimeInfoOrBuilder getUnreachableTimeOrBuilder()
The time (according to the master's clock) when the agent where this task was running became unreachable. This is only set on status updates for tasks running on agents that are unreachable (e.g., partitioned away from the master).
optional .mesos.TimeInfo unreachable_time = 14;
getUnreachableTimeOrBuilder
in interface Protos.TaskStatusOrBuilder
public boolean hasLimitation()
If the reason field indicates a container resource limitation, this field optionally contains additional information.
optional .mesos.TaskResourceLimitation limitation = 16;
hasLimitation
in interface Protos.TaskStatusOrBuilder
public Protos.TaskResourceLimitation getLimitation()
If the reason field indicates a container resource limitation, this field optionally contains additional information.
optional .mesos.TaskResourceLimitation limitation = 16;
getLimitation
in interface Protos.TaskStatusOrBuilder
public Protos.TaskResourceLimitationOrBuilder getLimitationOrBuilder()
If the reason field indicates a container resource limitation, this field optionally contains additional information.
optional .mesos.TaskResourceLimitation limitation = 16;
getLimitationOrBuilder
in interface Protos.TaskStatusOrBuilder
public final boolean isInitialized()
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
java.io.IOException
public int getSerializedSize()
public boolean equals(java.lang.Object obj)
public int hashCode()
public static Protos.TaskStatus parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TaskStatus parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TaskStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TaskStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TaskStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Protos.TaskStatus parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TaskStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TaskStatus parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Protos.TaskStatus parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Protos.TaskStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public Protos.TaskStatus.Builder newBuilderForType()
public static Protos.TaskStatus.Builder newBuilder()
public static Protos.TaskStatus.Builder newBuilder(Protos.TaskStatus prototype)
public Protos.TaskStatus.Builder toBuilder()
protected Protos.TaskStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
public static Protos.TaskStatus getDefaultInstance()
public static <any> parser()
public <any> getParserForType()
public Protos.TaskStatus getDefaultInstanceForType()