public class TaskExecutionState extends Object implements IOReadableWritable
| Constructor and Description |
|---|
TaskExecutionState()
Creates an empty task execution state.
|
TaskExecutionState(JobID jobID,
ExecutionVertexID id,
ExecutionState executionState,
String description)
Creates a new task execution state.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description of this task execution state.
|
ExecutionState |
getExecutionState()
Returns the new execution state of the task.
|
ExecutionVertexID |
getID()
Returns the ID of the task this result belongs to
|
JobID |
getJobID()
The ID of the job the task belongs to
|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
public TaskExecutionState(JobID jobID, ExecutionVertexID id, ExecutionState executionState, String description)
jobID - the ID of the job the task belongs toid - the ID of the task whose state is to be reportedexecutionState - the execution state to be reporteddescription - an optional descriptionpublic TaskExecutionState()
public String getDescription()
null if there is no description availablepublic ExecutionVertexID 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 © 2014 The Apache Software Foundation. All rights reserved.