public class JobResponseMessage extends Object implements Serializable
| Constructor and Description |
|---|
JobResponseMessage(String jobId,
String jobStatus)
Constructor that takes the job ID and status.
|
JobResponseMessage(String jobId,
String jobStatus,
String jobMessage,
Exception jobException)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static JobResponseMessage |
fromByteArray(byte[] array)
Deserializes the payload sent, returning a new
JobResponseMessage on success. |
Exception |
getJobException()
Returns an
Exception, if one occurred for this job. |
String |
getJobId()
Retrieves the job ID.
|
String |
getJobMessage()
Retrieves the job cancellation/interruption message if one exists.
|
String |
getJobStatus()
Retrieves the job status.
|
byte[] |
toByteArray()
Returns a serialized version of this class.
|
public JobResponseMessage(String jobId, String jobStatus, String jobMessage, Exception jobException)
jobId - The Job ID.jobStatus - The status of the job.jobMessage - The job interruption message, if one occurred.jobException - The Exception for the job if one occurred.public String getJobStatus()
String containing the status of the job.public String getJobMessage()
String containing the job interruption message.public Exception getJobException()
Exception, if one occurred for this job.Exception for the job, null if not set.public byte[] toByteArray()
byte[] array containing the serialized payload.public static JobResponseMessage fromByteArray(byte[] array)
JobResponseMessage on success.array - byte[] array of data to deserialize.JobResponseMessage on success, null otherwise.Copyright © 2015. All rights reserved.