|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grid.jsv.CheckpointSpecifier
public final class CheckpointSpecifier
The CheckpointSpecifier class represents the checkpointing environment settings for a job, including the name of the checkpoint environment to use and the frequency with which checkpoints should be taken.
JobDescription.getCheckpointSpecifier()
,
JobDescription.setCheckpointSpecifier(com.sun.grid.jsv.CheckpointSpecifier)
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
NEVER_STR
String indicating that checkpoints should never be taken. |
static byte |
ON_MIN_CPU_INTERVAL
Code indicating that checkpoints should be taken periodically at the minimum CPU interval as specified by the queue. |
static java.lang.String |
ON_MIN_CPU_INTERVAL_STR
String indicating that checkpoints should be taken periodically at the minimum CPU interval as specified by the queue. |
static byte |
ON_SHUTDOWN
Code indicating that checkpoints should be taken when the execd shuts down |
static java.lang.String |
ON_SHUTDOWN_STR
Value indicating that checkpoints should be taken when the execd shuts down |
static byte |
ON_SUSPEND
Code indicating that checkpoints should be taken the job is suspended. |
static java.lang.String |
ON_SUSPEND_STR
String indicating that checkpoints should be taken the job is suspended. |
Constructor Summary | |
---|---|
CheckpointSpecifier()
|
Method Summary | |
---|---|
CheckpointSpecifier |
clone()
|
boolean |
equals(java.lang.Object obj)
|
long |
getInterval()
Get the number of seconds between checkpoints. |
java.lang.String |
getName()
Get the name of the checkpointing environment. |
byte |
getOccasion()
Get a byte value that represents the occasions when the job should be checkpointed. |
java.lang.String |
getOccasionString()
Get an occasion string that represents the occasions when the job should be checkpointed. |
int |
hashCode()
|
byte |
never()
Indicate that a checkpoint should never be taken. |
boolean |
onMinCpuInterval(boolean set)
Set whether a checkpoint should be taken periodically at the minimum CPU interval as specified by the queue. |
boolean |
onShutdown(boolean set)
Set whether a checkpoint should be taken when the execution daemon shuts down. |
boolean |
onSuspend(boolean set)
Set whether a checkpoint should be taken when the job is suspended. |
long |
setInterval(int hours,
int minutes,
int seconds)
Set the interval at which checkpoints should be taken. |
long |
setInterval(long sec)
Set the interval at which checkpoints should be taken. |
void |
setName(java.lang.String name)
Set the name of the checkpointing environment. |
void |
setOccasion(java.lang.String value)
Set the occasions when the job should be checkpointed according to a a String composed by combining the string values for the occasions when the job should be checkpointed. |
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 byte ON_SHUTDOWN
public static final java.lang.String ON_SHUTDOWN_STR
public static final byte ON_MIN_CPU_INTERVAL
public static final java.lang.String ON_MIN_CPU_INTERVAL_STR
public static final byte ON_SUSPEND
public static final java.lang.String ON_SUSPEND_STR
Constructor Detail |
---|
public CheckpointSpecifier()
Method Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the namepublic boolean onShutdown(boolean set)
set
- whether to take a checkpoint
getInterval()
public boolean onMinCpuInterval(boolean set)
set
- whether to take a checkpoint
getInterval()
public boolean onSuspend(boolean set)
set
- whether to take a checkpoint
getInterval()
public byte never()
getOccasion()
public long setInterval(long sec)
sec
- the number of seconds between checkpoints
getOccasion()
public long setInterval(int hours, int minutes, int seconds)
hours
- the number of hours between checkpoints -- this value is
combined to the number of minutes and secondsminutes
- the number of minutes between checkpoints -- this value is
combined to the number of hours and secondsseconds
- the number of seconds between checkpoints -- this value is
combined to the number of minutes and hours
getOccasion()
public long getInterval()
public byte getOccasion()
ON_MIN_CPU_INTERVAL
,
ON_SHUTDOWN
,
ON_SUSPEND
,
getInterval()
public void setOccasion(java.lang.String value)
value
- the occasion stringON_MIN_CPU_INTERVAL_STR
,
ON_SHUTDOWN_STR
,
ON_SUSPEND_STR
,
getInterval()
public java.lang.String getOccasionString()
ON_MIN_CPU_INTERVAL_STR
,
ON_SHUTDOWN_STR
,
ON_SUSPEND_STR
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CheckpointSpecifier clone()
clone
in class java.lang.Object
public 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 |