|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobEntryInterface
This is a interface for a scheduled job. It does not specify how to configure when to run, that is left to subclasses. See the JobEntryTorque for an example of a JobEntry backed by Torque objects.
| Method Summary | |
|---|---|
void |
calcRunTime()
Calculate how long before the next runtime. |
int |
compareTo(Object je)
Used for ordering Jobentries Note: this comparator imposes orderings that are inconsistent with equals. |
String |
getNextRunAsString()
Get the next runtime for this job as a String. |
Date |
getNextRunDate()
Gets the next runtime as a date |
long |
getNextRuntime()
Get the next runtime for this job as a long. |
String |
getTask()
Get the Task |
boolean |
isActive()
Check to see if job is currently active/running |
void |
setActive(boolean isActive)
Sets whether the job is running. |
void |
setTask(String v)
Set the value of Task |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.apache.torque.om.Persistent |
|---|
getPrimaryKey, isModified, isNew, save, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey |
| Method Detail |
|---|
int compareTo(Object je)
je - The first JobEntry object.
int indicating the result of the comparison.void setActive(boolean isActive)
isActive - Whether the job is running.boolean isActive()
String getTask()
void setTask(String v)
v - new valuelong getNextRuntime()
Date getNextRunDate()
String getNextRunAsString()
void calcRunTime()
throws TurbineException
TurbineException - a generic exception.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||