|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.ecm.platform.scheduler.core.service.SchedulerRegistryService
public class SchedulerRegistryService
Schedule registry service. Since the cleanup of the quartz job is done when service is activated, ( see see https://jira.nuxeo.com/browse/NXP-7303 ) in cluster mode, the schedules contributions MUST be the same on all nodes. Due the fact that all jobs are removed when service starts on a node it may be a short period with no schedules in quartz table even other node is running.
Field Summary | |
---|---|
static ComponentName |
NAME
|
Constructor Summary | |
---|---|
SchedulerRegistryService()
|
Method Summary | |
---|---|
void |
activate(ComponentContext context)
Activates the component. |
void |
deactivate(ComponentContext context)
Deactivates the component. |
RuntimeContext |
getContext()
|
void |
registerExtension(Extension extension)
Registers the given extension. |
void |
registerSchedule(Schedule schedule)
Registers a schedule. |
void |
registerSchedule(Schedule schedule,
Map<String,Serializable> parameters)
Registers a schedule. |
void |
unregisterExtension(Extension extension)
Unregisters the given extension. |
boolean |
unregisterSchedule(Schedule schedule)
UnRegisters a schedule. |
boolean |
unregisterSchedule(String scheduleId)
UnRegisters a schedule. |
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
applicationStarted, getAdapter, registerContribution, unregisterContribution |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ComponentName NAME
Constructor Detail |
---|
public SchedulerRegistryService()
Method Detail |
---|
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime context
Exception
- if an error occurs during activationpublic void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime context
Exception
- if an error occurs during activationpublic void registerExtension(Extension extension)
Extensible
registerExtension
in interface Extensible
registerExtension
in class DefaultComponent
extension
- the extension to registerpublic void unregisterExtension(Extension extension)
Extensible
unregisterExtension
in interface Extensible
unregisterExtension
in class DefaultComponent
extension
- the extension to unregisterpublic RuntimeContext getContext()
public void registerSchedule(Schedule schedule)
SchedulerRegistry
registerSchedule
in interface SchedulerRegistry
schedule
- the schedulepublic void registerSchedule(Schedule schedule, Map<String,Serializable> parameters)
SchedulerRegistry
registerSchedule
in interface SchedulerRegistry
public boolean unregisterSchedule(String scheduleId)
SchedulerRegistry
unregisterSchedule
in interface SchedulerRegistry
scheduleId
- the schedule id
public boolean unregisterSchedule(Schedule schedule)
SchedulerRegistry
unregisterSchedule
in interface SchedulerRegistry
schedule
- to be unregistered
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |