Package org.apache.fulcrum.quartz.impl
Class QuartzSchedulerImpl
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.quartz.impl.QuartzSchedulerImpl
- All Implemented Interfaces:
org.apache.avalon.framework.activity.Disposable,org.apache.avalon.framework.activity.Initializable,org.apache.avalon.framework.activity.Startable,org.apache.avalon.framework.configuration.Configurable,org.apache.avalon.framework.logger.LogEnabled,org.apache.avalon.framework.service.Serviceable,org.apache.avalon.framework.thread.ThreadSafe,QuartzScheduler,org.quartz.JobListener
public class QuartzSchedulerImpl
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements QuartzScheduler, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe, org.quartz.JobListener, org.apache.avalon.framework.activity.Startable
Avalon service wrapping the QuartzScheduler.
-
Field Summary
Fields inherited from interface org.apache.fulcrum.quartz.QuartzScheduler
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.apache.avalon.framework.configuration.Configuration conf) voiddispose()getName()Calls getName() on jobListenerorg.quartz.SchedulerGet the underlying Quartz scheduler.voidvoidjobExecutionVetoed(org.quartz.JobExecutionContext context) voidjobToBeExecuted(org.quartz.JobExecutionContext context) Hook to support jobs implementing Avalon interface such as LogEnabled and Serviceable.voidjobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException ex) voidservice(org.apache.avalon.framework.service.ServiceManager manager) voidstart()voidstop()Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
QuartzSchedulerImpl
public QuartzSchedulerImpl()
-
-
Method Details
-
configure
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException - Specified by:
configurein interfaceorg.apache.avalon.framework.configuration.Configurable- Throws:
org.apache.avalon.framework.configuration.ConfigurationException- See Also:
-
service
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException - Specified by:
servicein interfaceorg.apache.avalon.framework.service.Serviceable- Throws:
org.apache.avalon.framework.service.ServiceException- See Also:
-
initialize
- Specified by:
initializein interfaceorg.apache.avalon.framework.activity.Initializable- Throws:
Exception- See Also:
-
start
- Specified by:
startin interfaceorg.apache.avalon.framework.activity.Startable- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.avalon.framework.activity.Startable- Throws:
Exception
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.apache.avalon.framework.activity.Disposable- See Also:
-
getScheduler
public org.quartz.Scheduler getScheduler()Description copied from interface:QuartzSchedulerGet the underlying Quartz scheduler.- Specified by:
getSchedulerin interfaceQuartzScheduler- Returns:
- the Quartz scheduler
- See Also:
-
getName
Calls getName() on jobListener- Specified by:
getNamein interfaceorg.quartz.JobListener- See Also:
-
jobToBeExecuted
public void jobToBeExecuted(org.quartz.JobExecutionContext context) Hook to support jobs implementing Avalon interface such as LogEnabled and Serviceable.- Specified by:
jobToBeExecutedin interfaceorg.quartz.JobListener- See Also:
-
jobWasExecuted
public void jobWasExecuted(org.quartz.JobExecutionContext context, org.quartz.JobExecutionException ex) - Specified by:
jobWasExecutedin interfaceorg.quartz.JobListener- See Also:
-
jobExecutionVetoed
public void jobExecutionVetoed(org.quartz.JobExecutionContext context) - Specified by:
jobExecutionVetoedin interfaceorg.quartz.JobListener- See Also:
-