org.jcrontab
Class TurbineJcrontabScheduler
java.lang.Object
|
+--org.apache.turbine.services.BaseInitable
|
+--org.apache.turbine.services.BaseService
|
+--org.apache.turbine.services.TurbineBaseService
|
+--org.jcrontab.TurbineJcrontabScheduler
- All Implemented Interfaces:
- org.apache.turbine.services.Initable, org.apache.turbine.services.Service
- public class TurbineJcrontabScheduler
- extends org.apache.turbine.services.TurbineBaseService
This class integrates Jcrontab as sheduler for Turbine.
To get info from jakarta-turbine plz refer to http://jakarta.apache.org/turbine/
- Version:
- $Revision: 1.1 $
- Author:
- $Author: iolalla $ Eric Pugh
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
Fields inherited from interface org.apache.turbine.services.Service |
SERVICE_NAME |
Method Summary |
Crontab |
getScheduler()
Gets the scheduler attribute of the JCrontabScheduler object |
void |
init(javax.servlet.ServletConfig config)
Called the first time the Service is used. |
void |
shutdown()
Called when the application is shutting down. |
Methods inherited from class org.apache.turbine.services.TurbineBaseService |
init, init, init |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, setInitableBroker |
TurbineJcrontabScheduler
public TurbineJcrontabScheduler()
- Constructor for the TurbineJCrontabScheduler object
getScheduler
public Crontab getScheduler()
- Gets the scheduler attribute of the JCrontabScheduler object
- Returns:
- The scheduler value
init
public void init(javax.servlet.ServletConfig config)
throws org.apache.turbine.services.InitializationException
- Called the first time the Service is used.
Load all the jobs from cold storage. Add jobs to the queue (sorted in
ascending order by runtime) and start the scheduler thread.
- Overrides:
init
in class org.apache.turbine.services.TurbineBaseService
- Parameters:
config
- A ServletConfig.
- Throws:
org.apache.turbine.services.InitializationException
- Description of Exception
shutdown
public void shutdown()
- Called when the application is shutting down.
- Specified by:
shutdown
in interface org.apache.turbine.services.Initable
- Overrides:
shutdown
in class org.apache.turbine.services.TurbineBaseService