|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.event.impl.jobs.BackgroundLoader
public class BackgroundLoader
Task for loading stored jobs from the resource tree. This component starts a background thread. The thread is only active when a stable topology view is available. Whenever the component gets activated, it loads all jobs from the resource tree. New incoming jobs are handled via a queue.
Constructor Summary | |
---|---|
BackgroundLoader(JobManagerImpl jobManagerImpl,
JobManagerConfiguration configuration2,
org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory2)
Create and activate the loader. |
Method Summary | |
---|---|
void |
addJob(JobImpl job)
Add a job to the load job queue if the instance is running. |
void |
deactivate()
Deactivate the loader. |
void |
loadJob(String path)
Add a path to the load job queue if the instance is running. |
void |
restart()
Restart if the instance is currently running. |
void |
run()
|
void |
start()
Start the background loader process. |
void |
stop()
Stop the background loader process. |
void |
tryToReloadUnloadedJobs()
Try to reload unloaded jobs - this method is invoked if bundles have been added etc. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackgroundLoader(JobManagerImpl jobManagerImpl, JobManagerConfiguration configuration2, org.apache.sling.api.resource.ResourceResolverFactory resourceResolverFactory2)
Method Detail |
---|
public void deactivate()
public void start()
public void stop()
public void restart()
public void run()
run
in interface Runnable
public void tryToReloadUnloadedJobs()
public void loadJob(String path)
public void addJob(JobImpl job)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |