org.xmlBlaster.contrib.scheduler
Class SchedulerPlugin
java.lang.Object
org.xmlBlaster.contrib.GlobalInfo
org.xmlBlaster.contrib.scheduler.SchedulerPlugin
- All Implemented Interfaces:
- I_Info, org.xmlBlaster.util.plugin.I_Plugin, org.quartz.Job, SchedulerPluginMBean
- public class SchedulerPlugin
- extends GlobalInfo
- implements SchedulerPluginMBean, org.quartz.Job
|
Nested Class Summary |
class |
SchedulerPlugin.CronData
The syntax for the configuration is as for crontab:
http://www.adminschoice.com/docs/crontab.htm#Crontab%20file
. |
|
Method Summary |
java.lang.String |
addScheduler(java.lang.String name,
java.lang.String value)
|
protected void |
doInit(org.xmlBlaster.util.Global glob,
org.xmlBlaster.util.plugin.PluginInfo plugInfo)
|
void |
execute(org.quartz.JobExecutionContext context)
|
java.lang.String |
getJobNames()
|
java.lang.String |
getSchedulerList()
|
java.lang.String |
removeScheduler(java.lang.String name)
|
void |
shutdown()
Cleans up the resource. |
| Methods inherited from class org.xmlBlaster.contrib.GlobalInfo |
dump, get, getBoolean, getGlobal, getInt, getKeys, getLong, getObject, getObjectKeys, getOriginalGlobal, getRaw, getStrippedString, getType, getVersion, init, loadPlugin, put, putObject, putRaw, setStrippedHostname |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchedulerPlugin
public SchedulerPlugin()
removeScheduler
public java.lang.String removeScheduler(java.lang.String name)
- Specified by:
removeScheduler in interface SchedulerPluginMBean
doInit
protected void doInit(org.xmlBlaster.util.Global glob,
org.xmlBlaster.util.plugin.PluginInfo plugInfo)
throws org.xmlBlaster.util.XmlBlasterException
- Specified by:
doInit in class GlobalInfo
- Parameters:
glob - The global passed by the RunLevelManager, this is not the object owned by the plugin. It is the original global.plugInfo -
- Throws:
org.xmlBlaster.util.XmlBlasterException
execute
public void execute(org.quartz.JobExecutionContext context)
throws org.quartz.JobExecutionException
- Specified by:
execute in interface org.quartz.Job
- Throws:
org.quartz.JobExecutionException
shutdown
public void shutdown()
throws org.xmlBlaster.util.XmlBlasterException
- Description copied from interface:
org.xmlBlaster.util.plugin.I_Plugin
- Cleans up the resource.
- Specified by:
shutdown in interface SchedulerPluginMBean- Overrides:
shutdown in class GlobalInfo
- Throws:
org.xmlBlaster.util.XmlBlasterException- See Also:
I_Plugin.shutdown()
getSchedulerList
public java.lang.String getSchedulerList()
- Specified by:
getSchedulerList in interface SchedulerPluginMBean
addScheduler
public java.lang.String addScheduler(java.lang.String name,
java.lang.String value)
- Specified by:
addScheduler in interface SchedulerPluginMBean
getJobNames
public java.lang.String getJobNames()
throws org.quartz.SchedulerException
- Specified by:
getJobNames in interface SchedulerPluginMBean
- Throws:
org.quartz.SchedulerException
Copyright © 1999-2007 The xmlBlaster.org contributers.