|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grid.jsv.MailSpecifier
public final class MailSpecifier
The MailSpecifier class represents the occasions when an email notification should be sent to the mail recipients list about the state of this job.
JobDescription.getMailSpecifier(),
JobDescription.setMailSpecifier(com.sun.grid.jsv.MailSpecifier),
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
NEVER_STR
String representing that email should never be set. |
static int |
ON_ABORT
Code representing that email should be sent if the job is abourted. |
static java.lang.String |
ON_ABORT_STR
String representing that email should be sent if the job is abourted. |
static int |
ON_BEGIN
Code representing that email should be sent when the job is started. |
static java.lang.String |
ON_BEGIN_STR
String representing that email should be sent when the job is started. |
static int |
ON_END
Code representing that email should be sent when the job ends. |
static java.lang.String |
ON_END_STR
String representing that email should be sent when the job ends. |
static int |
ON_SUSPEND
Code representing that email should be sent if the job is suspended. |
static java.lang.String |
ON_SUSPEND_STR
String representing that email should be sent if the job is suspended. |
| Constructor Summary | |
|---|---|
MailSpecifier()
|
|
| Method Summary | |
|---|---|
MailSpecifier |
clone()
|
boolean |
equals(java.lang.Object obj)
|
byte |
getOccasion()
Return a byte value that represents the occasions when email should be sent about a job. |
java.lang.String |
getOccasionString()
Return a String value that represents the occasions when email should be sent about a job. |
int |
hashCode()
|
byte |
never()
Indicate that email should never be sent about a job. |
boolean |
onAbort(boolean set)
Set whether email should be sent if the job is aborted. |
boolean |
onBegin(boolean set)
Set whether email should be sent when the job is started. |
boolean |
onEnd(boolean set)
Set whether email should be sent when the job end. |
boolean |
onSuspend(boolean set)
Set whether email should be sent if the job is suspended. |
void |
setOccasion(java.lang.String value)
Set the occasions when email should be sent for a job according to a String composed of the string identifiers for the occasions when email should be sent. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NEVER_STR
public static final int ON_ABORT
public static final java.lang.String ON_ABORT_STR
public static final int ON_BEGIN
public static final java.lang.String ON_BEGIN_STR
public static final int ON_END
public static final java.lang.String ON_END_STR
public static final int ON_SUSPEND
public static final java.lang.String ON_SUSPEND_STR
| Constructor Detail |
|---|
public MailSpecifier()
| Method Detail |
|---|
public boolean onBegin(boolean set)
set - whether email should be sent
public boolean onEnd(boolean set)
set - whether email should be sent
public boolean onAbort(boolean set)
set - whether email should be sent
public boolean onSuspend(boolean set)
set - whether email should be sent
public byte never()
getOccasion()public byte getOccasion()
ON_ABORT,
ON_BEGIN,
ON_END,
ON_SUSPENDpublic void setOccasion(java.lang.String value)
value - the occasion stringON_ABORT_STR,
ON_BEGIN_STR,
ON_END_STR,
ON_SUSPEND_STRpublic java.lang.String getOccasionString()
ON_ABORT_STR,
ON_BEGIN_STR,
ON_END_STR,
ON_SUSPEND_STRpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic MailSpecifier clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||