public class SchedulerRegistryService extends DefaultComponent implements SchedulerRegistry
Modifier and Type | Field and Description |
---|---|
static ComponentName |
NAME |
Constructor and Description |
---|
SchedulerRegistryService() |
Modifier and Type | Method and Description |
---|---|
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.
|
applicationStarted, getAdapter, registerContribution, unregisterContribution
public static final ComponentName NAME
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 contextException
- 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 contextException
- 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 idpublic boolean unregisterSchedule(Schedule schedule)
SchedulerRegistry
unregisterSchedule
in interface SchedulerRegistry
schedule
- to be unregisteredCopyright © 2011 Nuxeo SA. All Rights Reserved.