Klasse TorqueSchedulerService
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.turbine.services.schedule.AbstractSchedulerService
org.apache.turbine.services.schedule.TorqueSchedulerService
- Alle implementierten Schnittstellen:
Initable
,ScheduleService
,Service
Veraltet.
Service for a cron like scheduler.
- Version:
- $Id: TorqueSchedulerService.java 534527 2007-05-02 16:10:59Z tv $
- Autor:
- Dave Bryson, Quinton McCombs
-
Feldübersicht
Von Klasse geerbte Felder org.apache.turbine.services.schedule.AbstractSchedulerService
houseKeepingThread, log, scheduleQueue, threadPool
Von Klasse geerbte Felder org.apache.turbine.services.BaseService
configuration, name, serviceBroker
Von Klasse geerbte Felder org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
Von Schnittstelle geerbte Felder org.apache.turbine.services.schedule.ScheduleService
INTIALLY_ACTIVE, LOGGER_NAME, SERVICE_NAME
Von Schnittstelle geerbte Felder org.apache.turbine.services.Service
SERVICE_NAME
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetJob
(int oid) Veraltet.Get a specific Job from Storage.loadJobs()
Veraltet.Load all jobs from configuration storageVeraltet.Factory method for a new Job Schedule a job to run on a certain point of time.
Example 1: Run the DefaultScheduledJob at 8:00am every 15th of the month -
JobEntry je = newJob(0,0,8,-1,15,"DefaultScheduledJob");
Example 2: Run the DefaultScheduledJob at 8:00am every day -
JobEntry je = newJob(0,0,8,-1,-1,"DefaultScheduledJob");
Example 3: Run the DefaultScheduledJob every 2 hours. -
JobEntry je = newJob(0,120,-1,-1,-1,"DefaultScheduledJob");
Example 4: Run the DefaultScheduledJob every 30 seconds. -
JobEntry je = newJob(30,-1,-1,-1,-1,"DefaultScheduledJob");void
Veraltet.Remove a job from the queue.void
Veraltet.Add or update a job.Von Klasse geerbte Methoden org.apache.turbine.services.schedule.AbstractSchedulerService
addJob, clearThread, getThread, init, isEnabled, listJobs, nextJob, restart, setEnabled, shutdown, startScheduler, stopScheduler
Von Klasse geerbte Methoden org.apache.turbine.services.TurbineBaseService
init, init
Von Klasse geerbte Methoden org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
Von Klasse geerbte Methoden org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.apache.turbine.services.Initable
getInit, init, setInitableBroker
Von Schnittstelle geerbte Methoden org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
-
Konstruktordetails
-
TorqueSchedulerService
public TorqueSchedulerService()Veraltet.
-
-
Methodendetails
-
loadJobs
Veraltet.Load all jobs from configuration storage- Angegeben von:
loadJobs
in KlasseAbstractSchedulerService
- Gibt zurück:
- the list of pre-configured jobs
- Löst aus:
TurbineException
- if unable to load jobs
-
newJob
public JobEntry newJob(int sec, int min, int hour, int wd, int day_mo, String task) throws TurbineException Veraltet.Beschreibung aus Schnittstelle kopiert:ScheduleService
Factory method for a new Job Schedule a job to run on a certain point of time.
Example 1: Run the DefaultScheduledJob at 8:00am every 15th of the month -
JobEntry je = newJob(0,0,8,-1,15,"DefaultScheduledJob");
Example 2: Run the DefaultScheduledJob at 8:00am every day -
JobEntry je = newJob(0,0,8,-1,-1,"DefaultScheduledJob");
Example 3: Run the DefaultScheduledJob every 2 hours. -
JobEntry je = newJob(0,120,-1,-1,-1,"DefaultScheduledJob");
Example 4: Run the DefaultScheduledJob every 30 seconds. -
JobEntry je = newJob(30,-1,-1,-1,-1,"DefaultScheduledJob");- Angegeben von:
newJob
in SchnittstelleScheduleService
- Angegeben von:
newJob
in KlasseAbstractSchedulerService
- Parameter:
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.- Gibt zurück:
- A JobEntry.
- Löst aus:
TurbineException
- could not create job- Siehe auch:
-
getJob
Veraltet.Get a specific Job from Storage.- Angegeben von:
getJob
in SchnittstelleScheduleService
- Angegeben von:
getJob
in KlasseAbstractSchedulerService
- Parameter:
oid
- The int id for the job.- Gibt zurück:
- A JobEntry.
- Löst aus:
TurbineException
- job could not be retrieved.
-
removeJob
Veraltet.Remove a job from the queue.- Angegeben von:
removeJob
in SchnittstelleScheduleService
- Angegeben von:
removeJob
in KlasseAbstractSchedulerService
- Parameter:
je
- A JobEntry with the job to remove.- Löst aus:
TurbineException
- job could not be removed
-
updateJob
Veraltet.Add or update a job.- Angegeben von:
updateJob
in SchnittstelleScheduleService
- Angegeben von:
updateJob
in KlasseAbstractSchedulerService
- Parameter:
je
- A JobEntry with the job to modify- Löst aus:
TurbineException
- job could not be updated
-
QuartzSchedulerService
instead