@Immutable public class TaskInfo extends Object
Modifier and Type | Field and Description |
---|---|
static long |
MAX_VERSION
A value larger than any valid value.
|
static long |
MIN_VERSION
A value lower than
STARTING_VERSION . |
static long |
STARTING_VERSION
The first valid version that will be returned for a remote task.
|
Constructor and Description |
---|
TaskInfo(TaskId taskId,
Optional<String> nodeInstanceId,
long version,
TaskState state,
URI self,
org.joda.time.DateTime lastHeartbeat,
SharedBufferInfo outputBuffers,
Set<PlanNodeId> noMoreSplits,
TaskStats stats,
List<ExecutionFailureInfo> failures) |
Modifier and Type | Method and Description |
---|---|
List<ExecutionFailureInfo> |
getFailures() |
org.joda.time.DateTime |
getLastHeartbeat() |
Optional<String> |
getNodeInstanceId() |
Set<PlanNodeId> |
getNoMoreSplits() |
SharedBufferInfo |
getOutputBuffers() |
URI |
getSelf() |
TaskState |
getState() |
TaskStats |
getStats() |
TaskId |
getTaskId() |
long |
getVersion() |
TaskInfo |
summarize() |
String |
toString() |
public static final long STARTING_VERSION
public static final long MIN_VERSION
STARTING_VERSION
. This value can be used to
create an initial local task that is always older than any remote task.public static final long MAX_VERSION
public TaskInfo(TaskId taskId, Optional<String> nodeInstanceId, long version, TaskState state, URI self, org.joda.time.DateTime lastHeartbeat, SharedBufferInfo outputBuffers, Set<PlanNodeId> noMoreSplits, TaskStats stats, List<ExecutionFailureInfo> failures)
public TaskId getTaskId()
public long getVersion()
public TaskState getState()
public URI getSelf()
public org.joda.time.DateTime getLastHeartbeat()
public SharedBufferInfo getOutputBuffers()
public Set<PlanNodeId> getNoMoreSplits()
public TaskStats getStats()
public List<ExecutionFailureInfo> getFailures()
public TaskInfo summarize()
Copyright © 2012-2015. All Rights Reserved.