public class JobSubmissionResult extends AbstractJobResult
JobSubmissionResult is used to report the results
of a job submission. It contains a return code and a description.
In case of a submission error the description includes an error message.AbstractJobResult.ReturnCode| Constructor and Description |
|---|
JobSubmissionResult()
Constructs an empty
JobSubmissionResult object. |
JobSubmissionResult(AbstractJobResult.ReturnCode returnCode,
String description)
Constructs a new
JobSubmissionResult object with
the given return code. |
| Modifier and Type | Method and Description |
|---|---|
void |
read(DataInputView in) |
void |
write(DataOutputView out) |
equals, getDescription, getReturnCode, hashCodepublic JobSubmissionResult(AbstractJobResult.ReturnCode returnCode, String description)
JobSubmissionResult object with
the given return code.returnCode - the return code of the submission result.description - the error descriptionpublic JobSubmissionResult()
JobSubmissionResult object.
This constructor is used for object deserialization only and
should not be called directly.public void read(DataInputView in) throws IOException
read in interface IOReadableWritableread in class AbstractJobResultIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritablewrite in class AbstractJobResultIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.