public abstract class AbstractJobResult extends Object implements IOReadableWritable
AbstractJobResult is the super class of all results
to report the job operation. It contains a return code and an
optional description.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractJobResult.ReturnCode
The possible return codes for a job operation.
|
| Constructor and Description |
|---|
AbstractJobResult()
Construct a new abstract job result object.
|
AbstractJobResult(AbstractJobResult.ReturnCode returnCode,
String description)
Constructs a new abstract job result object and sets the description.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDescription()
Returns the description containing further details in case of an error.
|
AbstractJobResult.ReturnCode |
getReturnCode()
Returns the return code of the job operation.
|
int |
hashCode() |
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
public AbstractJobResult(AbstractJobResult.ReturnCode returnCode, String description)
returnCode - the return code that shall be carried by this result objectdescription - the optional error descriptionpublic AbstractJobResult()
public void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionpublic AbstractJobResult.ReturnCode getReturnCode()
public String getDescription()
nullCopyright © 2015 The Apache Software Foundation. All rights reserved.