public interface ScheduleService extends Service
| Modifier and Type | Field and Description |
|---|---|
static String |
INTIALLY_ACTIVE
TR.props key for initially activating the scheduler thread
|
static String |
LOGGER_NAME
TR.props key for the logger
|
static String |
SERVICE_NAME
Name of service
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<? extends JobEntry> |
listJobs()
List jobs in the queue.
|
JobEntry |
newJob(int sec,
int min,
int hour,
int wd,
int day_mo,
String task)
Factory method for a new Job
Schedule a job to run on a certain point of time.
|
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.
|
getConfiguration, getName, getProperties, setName, setServiceBrokerstatic final String SERVICE_NAME
static final String INTIALLY_ACTIVE
static final String LOGGER_NAME
JobEntry newJob(int sec, int min, int hour, int wd, int day_mo, String task) throws TurbineException
sec - Value for entry "seconds".min - Value for entry "minutes".hour - Value for entry "hours".wd - Value for entry "week days".day_mo - Value for entry "month days".task - Task to execute.TurbineException - could not create jobJobEntry getJob(int oid) throws TurbineException
oid - The int id for the job.TurbineException - could not retrieve jobvoid addJob(JobEntry je) throws TurbineException
je - A JobEntry with the job to add.TurbineException - job could not be addedvoid updateJob(JobEntry je) throws TurbineException
je - A JobEntry with the job to modifyTurbineException - job could not be updatedvoid removeJob(JobEntry je) throws TurbineException
je - A JobEntry with the job to remove.TurbineException - job could not be removedList<? extends JobEntry> listJobs()
boolean isEnabled()
void startScheduler()
void stopScheduler()
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.