|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.component.quartz.QuartzComponent
public class QuartzComponent
This component starts the Quartz framework and configure it. It is also providing the Scheduler that EJB timer will use for their use.
Field Summary | |
---|---|
private java.util.List<Property> |
quartzProperties
Properties for the scheduler. |
private org.quartz.Scheduler |
scheduler
Quartz scheduler shared by all Timer services. |
private org.quartz.SchedulerFactory |
schedulerFactory
Quartz scheduler Factory. |
Constructor Summary | |
---|---|
QuartzComponent()
|
Method Summary | |
---|---|
java.util.List<Property> |
getProperties()
Gets the list of properties. |
org.quartz.Scheduler |
getScheduler()
Gets the Quartz scheduler. |
TimerService |
getTimerService(Factory factory)
Gets an EJB timer service through this component. |
void |
init()
Init method. This method is called before the start method. |
void |
setProperties(java.util.List<Property> quartzProperties)
Set the list of properties. |
void |
start()
Start method. This method is called after the init method. |
void |
stop()
Stop method. This method is called when component needs to be stopped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.quartz.Scheduler scheduler
private java.util.List<Property> quartzProperties
private org.quartz.SchedulerFactory schedulerFactory
Constructor Detail |
---|
public QuartzComponent()
Method Detail |
---|
public void init() throws EZBComponentException
init
in interface EZBComponent
EZBComponentException
- if the initialization has failed.public void start() throws EZBComponentException
start
in interface EZBComponent
EZBComponentException
- if the start has failed.public void stop() throws EZBComponentException
stop
in interface EZBComponent
EZBComponentException
- if the stop is failing.public TimerService getTimerService(Factory factory)
getTimerService
in interface TimerComponent
factory
- an EasyBeans factory providing timeout notification.
public java.util.List<Property> getProperties()
public void setProperties(java.util.List<Property> quartzProperties)
quartzProperties
- the list of properties.public org.quartz.Scheduler getScheduler()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |