public abstract class AbstractTaskResult extends Object implements IOReadableWritable
AbstractTaskResult is used to report the results
of a task related operation. It contains the ID of the corresponding task, a return code and
a description. In case of an error the description includes an error message.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractTaskResult.ReturnCode |
| Constructor and Description |
|---|
AbstractTaskResult()
Constructs an empty abstract task result.
|
AbstractTaskResult(ExecutionVertexID vertexID,
AbstractTaskResult.ReturnCode returnCode)
Constructs a new abstract task result.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description for this abstract task result.
|
AbstractTaskResult.ReturnCode |
getReturnCode()
Returns the return code of the result.
|
ExecutionVertexID |
getVertexID()
Returns the ID of the task this result belongs to.
|
void |
read(DataInputView in) |
void |
setDescription(String description)
Sets a description for this abstract task result.
|
void |
write(DataOutputView out) |
public AbstractTaskResult(ExecutionVertexID vertexID, AbstractTaskResult.ReturnCode returnCode)
vertexID - the task ID this result belongs toreturnCode - the return code of the operationpublic AbstractTaskResult()
public void setDescription(String description)
description - the description to be setpublic String getDescription()
null if no description has yet been setpublic ExecutionVertexID getVertexID()
public AbstractTaskResult.ReturnCode getReturnCode()
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.