|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScheduleService
ScheduleService interface.
| Field Summary | |
|---|---|
static java.lang.String |
INTIALLY_ACTIVE
TR.props key for intially activating the scheduler thread |
static java.lang.String |
LOGGER_NAME
TR.props key for the logger |
static java.lang.String |
SERVICE_NAME
Name of service |
| Method Summary | |
|---|---|
void |
addJob(JobEntry je)
Add a new job to the queue. |
JobEntry |
getJob(int oid)
Get a specific Job from Storage. |
boolean |
isEnabled()
Determines if the scheduler service is currently active. |
java.util.List<JobEntry> |
listJobs()
List jobs in the queue. |
void |
removeJob(JobEntry je)
Remove a job from the queue. |
void |
startScheduler()
Starts the scheduler if not already running. |
void |
stopScheduler()
Stops the scheduler if ti is currently running. |
void |
updateJob(JobEntry je)
Modify a Job. |
| Methods inherited from interface org.apache.turbine.services.Service |
|---|
getConfiguration, getName, getProperties, setName, setServiceBroker |
| Methods inherited from interface org.apache.turbine.services.Initable |
|---|
getInit, init, init, setInitableBroker, shutdown |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
static final java.lang.String INTIALLY_ACTIVE
static final java.lang.String LOGGER_NAME
| Method Detail |
|---|
JobEntry getJob(int oid)
throws TurbineException
oid - The int id for the job.
TurbineException - could not retreive job
void addJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to add.
TurbineException - job could not be added
void updateJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to modify
TurbineException - job could not be updated
void removeJob(JobEntry je)
throws TurbineException
je - A JobEntry with the job to remove.
TurbineException - job could not be removedjava.util.List<JobEntry> listJobs()
boolean isEnabled()
void startScheduler()
void stopScheduler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||