Modifier and Type | Class and Description |
---|---|
static class |
ScheduledJobHandler.Holder |
Constructor and Description |
---|
ScheduledJobHandler(JobManagerConfiguration configuration,
JobSchedulerImpl jobScheduler) |
Modifier and Type | Method and Description |
---|---|
ScheduledJobInfoImpl |
addOrUpdateJob(String jobTopic,
Map<String,Object> jobProperties,
String scheduleName,
boolean suspend,
List<ScheduleInfoImpl> scheduleInfos)
Write a scheduled job to the resource tree.
|
void |
bundleEvent()
A bundle event occurred which means we can try loading jobs that previously
failed because of missing classes.
|
void |
deactivate() |
void |
handleAddUpdate(String path)
Handle observation event for adding or updating a scheduled job
|
void |
handleRemove(String path)
Handle observation event for removing a scheduled job
|
void |
maintenance() |
void |
remove(ScheduledJobInfoImpl info)
Remove a scheduled job
|
void |
run() |
void |
updateSchedule(String scheduleName,
Collection<ScheduleInfo> scheduleInfo) |
public ScheduledJobHandler(JobManagerConfiguration configuration, JobSchedulerImpl jobScheduler)
configuration
- Current job manager configurationpublic void deactivate()
public ScheduledJobInfoImpl addOrUpdateJob(String jobTopic, Map<String,Object> jobProperties, String scheduleName, boolean suspend, List<ScheduleInfoImpl> scheduleInfos) throws org.apache.sling.api.resource.PersistenceException
org.apache.sling.api.resource.PersistenceException
public void bundleEvent()
public void handleRemove(String path)
path
- The path to the jobpublic void handleAddUpdate(String path)
path
- The path to the jobpublic void remove(ScheduledJobInfoImpl info)
info
- The schedule infopublic void updateSchedule(String scheduleName, Collection<ScheduleInfo> scheduleInfo)
public void maintenance()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.