|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.inca.depot.persistent.PersistentObject
edu.sdsc.inca.depot.persistent.Schedule
public class Schedule
Schedule holds the information for a cron-like schedule that we use. In the future there will be other schedule types as well.
| Field Summary |
|---|
| Fields inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
|---|
DB_EMPTY_STRING, logger, MAX_DB_LONG_STRING_LENGTH, MAX_DB_STRING_LENGTH |
| Constructor Summary | |
|---|---|
Schedule()
Default constructor. |
|
Schedule(java.lang.String min,
java.lang.String hour,
java.lang.String mday,
java.lang.String month,
java.lang.String wday,
java.lang.String type,
java.lang.Integer numOccurs)
Full constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Override of the default equals method. |
Schedule |
fromBean(edu.sdsc.inca.dataModel.util.Schedule s)
Copies information from an Inca schema XmlBean Schedule object so that this object contains equivalent information. |
PersistentObject |
fromBean(org.apache.xmlbeans.XmlObject o)
Copies information from an Inca schema XmlBean Schedule object so that this object contains equivalent information. |
java.lang.String |
getHour()
Return the hour portion of the cron schedule. |
java.lang.String |
getMday()
Return the mday portion of the cron schedule. |
java.lang.String |
getMinute()
Return the minute portion of the cron schedule. |
java.lang.String |
getMonth()
Return the month portion of the cron schedule. |
java.lang.Integer |
getNumOccurs()
Null implies unlimited. |
boolean |
getSuspended()
Returns whether or not further execution has been suspended pending a user request to resume. |
java.lang.String |
getType()
Returns the type of schedule. |
java.lang.String |
getWday()
Return the wday portion of the cron schedule. |
java.util.Date |
nextEvent(java.util.Date d)
Returns the first date/time after a specified date/time that this schedule will cause an event. |
void |
setHour(java.lang.String hour)
Set the hour portion of the cron schedule. |
void |
setMday(java.lang.String mday)
Set the month day portion of the schedule. |
void |
setMinute(java.lang.String minute)
Set the minute portion of the cron schedule. |
void |
setMonth(java.lang.String month)
Set the month portion of the cron schedule. |
void |
setNumOccurs(java.lang.Integer numOccurs)
Set the number of times the schedule should be run before being discarded. |
void |
setSuspended(boolean suspended)
Indicates whether or not further execution should be suspended pending a user request to resume. |
void |
setType(java.lang.String type)
Set the type of schedule. |
void |
setWday(java.lang.String wday)
Set the week day portion of the schedule. |
org.apache.xmlbeans.XmlObject |
toBean()
Returns a Inca schema XmlBean Schedule object that contains information equivalent to this object. |
java.lang.String |
toString()
|
| Methods inherited from class edu.sdsc.inca.depot.persistent.PersistentObject |
|---|
toXml, truncate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Schedule()
public Schedule(java.lang.String min,
java.lang.String hour,
java.lang.String mday,
java.lang.String month,
java.lang.String wday,
java.lang.String type,
java.lang.Integer numOccurs)
min - hour - mday - month - wday - type - numOccurs - | Method Detail |
|---|
public PersistentObject fromBean(org.apache.xmlbeans.XmlObject o)
fromBean in class PersistentObjecto - the XmlBean Schedule object to copy
public Schedule fromBean(edu.sdsc.inca.dataModel.util.Schedule s)
s - the XmlBean Schedule object to copy
public java.lang.String getMinute()
public java.util.Date nextEvent(java.util.Date d)
d - a date/time preceding the returned value
public void setMinute(java.lang.String minute)
minute - this minute portion of the schedulepublic java.lang.String getHour()
public void setHour(java.lang.String hour)
hour - this hour portion of the schedulepublic java.lang.String getMonth()
public void setMonth(java.lang.String month)
month - the month portion of the schedulepublic java.lang.String getMday()
public void setMday(java.lang.String mday)
mday - the month day portion of the schedulepublic java.lang.String getWday()
public void setWday(java.lang.String wday)
wday - the week day portion of the schedulepublic java.lang.String getType()
public void setType(java.lang.String type)
type - public java.lang.Integer getNumOccurs()
public void setNumOccurs(java.lang.Integer numOccurs)
numOccurs - public boolean getSuspended()
public void setSuspended(boolean suspended)
suspended - the suspension statuspublic org.apache.xmlbeans.XmlObject toBean()
toBean in class PersistentObjectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||