public class SchedulerServiceImpl extends DefaultComponent implements SchedulerService, RuntimeServiceListener
| Constructor and Description |
|---|
SchedulerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo bundles.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
RuntimeContext |
getContext() |
void |
handleEvent(RuntimeServiceEvent event) |
boolean |
hasApplicationStarted()
Checks if the framework has fully started.
|
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 id)
UnRegisters a schedule.
|
getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, setLastModified, unregisterContributionpublic void activate(ComponentContext context)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextpublic void applicationStarted(ComponentContext context)
ComponentapplicationStarted in interface ComponentapplicationStarted in class DefaultComponentpublic boolean hasApplicationStarted()
SchedulerServiceUsed to delay job execution until the framework has fully started.
hasApplicationStarted in interface SchedulerServicetrue if the framework has startedpublic void registerExtension(Extension extension)
ExtensibleregisterExtension in interface ExtensibleregisterExtension in class DefaultComponentextension - the extension to registerpublic void unregisterExtension(Extension extension)
ExtensibleunregisterExtension in interface ExtensibleunregisterExtension in class DefaultComponentextension - the extension to unregisterpublic RuntimeContext getContext()
public void registerSchedule(Schedule schedule)
SchedulerServiceregisterSchedule in interface SchedulerServiceschedule - the schedulepublic void registerSchedule(Schedule schedule, Map<String,Serializable> parameters)
SchedulerServiceregisterSchedule in interface SchedulerServicepublic boolean unregisterSchedule(String id)
SchedulerServiceunregisterSchedule in interface SchedulerServiceid - the schedule idpublic boolean unregisterSchedule(Schedule schedule)
SchedulerServiceunregisterSchedule in interface SchedulerServiceschedule - to be unregisteredpublic void handleEvent(RuntimeServiceEvent event)
handleEvent in interface RuntimeServiceListenerCopyright © 2015 Nuxeo SA. All rights reserved.