public class TaskExecutionState extends Object implements Serializable
Constructor and Description |
---|
TaskExecutionState(JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState)
Creates a new task execution state update, with no attached exception and no accumulators.
|
TaskExecutionState(JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState,
Throwable error)
Creates a new task execution state update, with an attached exception but no accumulators.
|
TaskExecutionState(JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState,
Throwable error,
AccumulatorSnapshot accumulators)
Creates a new task execution state update, with an attached exception.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccumulatorSnapshot |
getAccumulators()
Gets flink and user-defined accumulators in serialized form.
|
Throwable |
getError(ClassLoader userCodeClassloader)
Gets the attached exception, which is in serialized form.
|
ExecutionState |
getExecutionState()
Returns the new execution state of the task.
|
ExecutionAttemptID |
getID()
Returns the ID of the task this result belongs to
|
JobID |
getJobID()
The ID of the job the task belongs to
|
int |
hashCode() |
String |
toString() |
public TaskExecutionState(JobID jobID, ExecutionAttemptID executionId, ExecutionState executionState)
jobID
- the ID of the job the task belongs toexecutionId
- the ID of the task execution whose state is to be reportedexecutionState
- the execution state to be reportedpublic TaskExecutionState(JobID jobID, ExecutionAttemptID executionId, ExecutionState executionState, Throwable error)
jobID
- the ID of the job the task belongs toexecutionId
- the ID of the task execution whose state is to be reportedexecutionState
- the execution state to be reportedpublic TaskExecutionState(JobID jobID, ExecutionAttemptID executionId, ExecutionState executionState, Throwable error, AccumulatorSnapshot accumulators)
jobID
- the ID of the job the task belongs toexecutionId
- the ID of the task execution whose state is to be reportedexecutionState
- the execution state to be reportederror
- an optional erroraccumulators
- The flink and user-defined accumulators which may be null.public Throwable getError(ClassLoader userCodeClassloader)
userCodeClassloader
- The classloader that can resolve user-defined exceptions.public ExecutionAttemptID getID()
public ExecutionState getExecutionState()
public JobID getJobID()
public AccumulatorSnapshot getAccumulators()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.