public class TaskExecutionState extends Object implements IOReadableWritable, Serializable
| Constructor and Description |
|---|
TaskExecutionState()
Creates an empty task execution state.
|
TaskExecutionState(JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState) |
TaskExecutionState(JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState,
Throwable error)
Creates a new task execution state.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Throwable |
getError() |
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() |
void |
read(DataInputView in) |
String |
toString() |
void |
write(DataOutputView out) |
public TaskExecutionState(JobID jobID, ExecutionAttemptID executionId, ExecutionState executionState)
public 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 reportederror - an optional errorpublic TaskExecutionState()
public Throwable getError()
public ExecutionAttemptID getID()
public ExecutionState getExecutionState()
public JobID getJobID()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.