|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ace.moab.api.jobs.JobBlockReason
public class JobBlockReason
Represents the reason a job might be blocked. The reason consists of the block reason type along with an optional message.
| Constructor Summary | |
|---|---|
JobBlockReason(JobBlockReasonType type)
Creates a JobBlockReason object with the specified type (Required) and an empty message. |
|
JobBlockReason(JobBlockReasonType type,
java.lang.String message)
Creates a JobBlockReason object with the specified type (Required) and the specified message (optional). |
|
| Method Summary | |
|---|---|
int |
compareTo(JobBlockReason o)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getMessage()
Get the message of the job's block reason. |
JobBlockReasonType |
getType()
Get the type of the job's block reason. |
static JobBlockReason |
parseMoabString(java.lang.String blockString)
Creates a job block reason based on the input string. |
void |
setMessage(java.lang.String message)
Sets the message of the job's block reason. |
void |
setType(JobBlockReasonType type)
Set the type of the job's block reason. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JobBlockReason(JobBlockReasonType type)
type - The type of reason why the job is blocked.
public JobBlockReason(JobBlockReasonType type,
java.lang.String message)
type - The type of reason why the job is blocked.message - The message associated with the block message.| Method Detail |
|---|
public static JobBlockReason parseMoabString(java.lang.String blockString)
throws java.text.ParseException
blockString - The input string containing the type and the corresponding
message
java.text.ParseException - if the type could not be determined.public void setMessage(java.lang.String message)
message - the message of the job's block reason. Can be null.public java.lang.String getMessage()
public void setType(JobBlockReasonType type)
type - the type of the job's block reason. Cannot be null.public JobBlockReasonType getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(JobBlockReason o)
compareTo in interface java.lang.Comparable<JobBlockReason>public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||