|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.turbine.services.schedule.TurbineScheduler
public abstract class TurbineScheduler
This is a fascade class to provide easy access to the Scheduler service. All access methods are static and act upon the current instance of the scheduler service.
ScheduleService| Constructor Summary | |
|---|---|
TurbineScheduler()
|
|
| Method Summary | |
|---|---|
static void |
addJob(JobEntry je)
Add a new job to the queue. |
static JobEntry |
getJob(int oid)
Get a specific Job from Storage. |
static boolean |
isEnabled()
Determines if the scheduler service is currently active. |
static List<JobEntry> |
listJobs()
List jobs in the queue. |
static void |
removeJob(JobEntry je)
Remove a job from the queue. |
static void |
startScheduler()
Starts the scheduler if not already running. |
static void |
stopScheduler()
Stops the scheduler if ti is currently running. |
static void |
updateJob(JobEntry je)
Add or update a job |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TurbineScheduler()
| Method Detail |
|---|
public static JobEntry getJob(int oid)
throws TurbineException
oid - The int id for the job.
TurbineException - job could not be retrieved
public static void addJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to add.
TurbineException - job could not be added
public static void updateJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to modify
TurbineException - job could not be updated
public static void removeJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to remove.
TurbineException - job could not be removedpublic static List<JobEntry> listJobs()
public static boolean isEnabled()
public static void startScheduler()
public static void stopScheduler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||