public class SchedulerServiceImpl extends DefaultComponent implements SchedulerService
| Modifier and Type | Field and Description |
|---|---|
protected RuntimeContext |
context |
protected ScheduleExtensionRegistry |
registry |
protected org.quartz.Scheduler |
scheduler |
lastModified, name| Constructor and Description |
|---|
SchedulerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(ComponentContext context)
Activates the component.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
RuntimeContext |
getContext() |
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.
|
protected void |
schedule(Schedule schedule,
Map<String,Serializable> parameters) |
protected void |
schedule(String id,
org.quartz.JobDetail job,
org.quartz.Trigger trigger) |
protected void |
setupScheduler() |
protected void |
shutdownScheduler() |
void |
start(ComponentContext context)
Start the component.
|
void |
stop(ComponentContext context)
Stop the component.
|
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
boolean |
unregisterSchedule(Schedule schedule)
UnRegisters a schedule.
|
boolean |
unregisterSchedule(String id)
UnRegisters a schedule.
|
protected boolean |
unschedule(String id) |
protected boolean |
unschedule(String id,
org.quartz.JobKey jobKey) |
getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, setLastModified, setModifiedNow, setName, unregister, unregisterContributionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected RuntimeContext context
protected org.quartz.Scheduler scheduler
protected final ScheduleExtensionRegistry registry
public SchedulerServiceImpl()
public 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 contextprotected void setupScheduler() throws IOException, org.quartz.SchedulerException
IOExceptionorg.quartz.SchedulerExceptionprotected void shutdownScheduler()
public 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 start(ComponentContext context)
Componentstart in interface Componentstart in class DefaultComponentpublic void stop(ComponentContext context)
Componentstop in interface Componentstop 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 SchedulerServiceprotected void schedule(Schedule schedule, Map<String,Serializable> parameters)
public boolean unregisterSchedule(String id)
SchedulerServiceunregisterSchedule in interface SchedulerServiceid - the schedule idprotected void schedule(String id, org.quartz.JobDetail job, org.quartz.Trigger trigger) throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionprotected boolean unschedule(String id)
protected boolean unschedule(String id, org.quartz.JobKey jobKey)
public boolean unregisterSchedule(Schedule schedule)
SchedulerServiceunregisterSchedule in interface SchedulerServiceschedule - to be unregisteredCopyright © 2019 Nuxeo. All rights reserved.