QuartzSchedulerService instead@Deprecated public class TorqueSchedulerService extends AbstractSchedulerService
AbstractSchedulerService.MainLoopenabled, log, mainLoop, scheduleQueue, threadconfiguration, name, serviceBrokerinitableBroker, isInitializedINTIALLY_ACTIVE, LOGGER_NAME, SERVICE_NAME| Constructor and Description |
|---|
TorqueSchedulerService()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
JobEntry |
getJob(int oid)
Deprecated.
Get a specific Job from Storage.
|
protected List<? extends JobEntry> |
loadJobs()
Deprecated.
Load all jobs from configuration storage
|
JobEntry |
newJob(int sec,
int min,
int hour,
int wd,
int day_mo,
String task)
Deprecated.
Factory method for a new Job
Schedule a job to run on a certain point of time.
|
void |
removeJob(JobEntry je)
Deprecated.
Remove a job from the queue.
|
void |
updateJob(JobEntry je)
Deprecated.
Add or update a job.
|
addJob, clearThread, getThread, init, isEnabled, listJobs, nextJob, restart, setEnabled, shutdown, startScheduler, stopSchedulerinit, initgetConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBrokergetInit, getInitableBroker, setInit, setInitableBrokerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getName, getProperties, setName, setServiceBrokergetInit, init, setInitableBrokerpublic TorqueSchedulerService()
protected List<? extends JobEntry> loadJobs() throws TurbineException
loadJobs in class AbstractSchedulerServiceTurbineExceptionpublic JobEntry newJob(int sec, int min, int hour, int wd, int day_mo, String task) throws TurbineException
ScheduleServicenewJob in interface ScheduleServicenewJob in class AbstractSchedulerServicesec - 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 jobScheduleService.newJob(int, int, int, int, int, java.lang.String)public JobEntry getJob(int oid) throws TurbineException
getJob in interface ScheduleServicegetJob in class AbstractSchedulerServiceoid - The int id for the job.TurbineException - job could not be retrieved.public void removeJob(JobEntry je) throws TurbineException
removeJob in interface ScheduleServiceremoveJob in class AbstractSchedulerServiceje - A JobEntry with the job to remove.TurbineException - job could not be removedpublic void updateJob(JobEntry je) throws TurbineException
updateJob in interface ScheduleServiceupdateJob in class AbstractSchedulerServiceje - A JobEntry with the job to modifyTurbineException - job could not be updatedCopyright © 2000–2018 The Apache Software Foundation. All rights reserved.