public class JobParametersMessage extends Object implements Serializable
| Constructor and Description |
|---|
JobParametersMessage(String jobName,
String[] jobParameters)
Constructor that sets the job name and its parameters.
|
JobParametersMessage(String jobName,
String jobMessage,
String[] jobParameters)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static JobParametersMessage |
fromByteArray(byte[] array)
Deserializes the payload sent, returning a new
JobParametersMessage on success. |
String |
getJobMessage()
Retrieves the job reason message, if set.
|
String |
getJobName()
Returns the name of the job.
|
String[] |
getJobParameters()
Retrieves the list of parameters set.
|
int |
hashCode() |
byte[] |
toByteArray()
Returns a serialized version of this class.
|
String |
toString() |
public JobParametersMessage(String jobName, String jobMessage, String[] jobParameters)
jobName - The name of the job.jobMessage - The job reason message for stopping, if applicable.jobParameters - The String array of parameters to send to the job.public String getJobName()
String containing the job name.public String getJobMessage()
String containing the job message.public String[] getJobParameters()
String[] array containing the parameters list, null if not set.public byte[] toByteArray()
byte[] array containing the serialized payload.public static JobParametersMessage fromByteArray(byte[] array)
JobParametersMessage on success.array - byte[] array of data to deserialize.JobParametersMessage on success, null otherwise.Copyright © 2015. All rights reserved.