org.apache.sling.event.impl.jobs.config
Class QueueConfigurationManager

java.lang.Object
  extended by org.apache.sling.event.impl.jobs.config.QueueConfigurationManager

@Services(value=@Service(value=QueueConfigurationManager.class))
public class QueueConfigurationManager
extends Object

An event handler for special job events. We schedule this event handler to run in the background and clean up obsolete events.


Constructor Summary
QueueConfigurationManager()
           
 
Method Summary
protected  void activate(org.osgi.framework.BundleContext bundleContext)
          Activate this component.
protected  void deactivate()
          Deactivate this component.
 InternalQueueConfiguration[] getConfigurations()
          Return all configurations.
 InternalQueueConfiguration getQueueConfiguration(JobEvent event)
          Find the queue configuration for the job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueueConfigurationManager

public QueueConfigurationManager()
Method Detail

activate

@Activate
protected void activate(org.osgi.framework.BundleContext bundleContext)
Activate this component. Create the service tracker and start it.


deactivate

@Deactivate
protected void deactivate()
Deactivate this component. Stop the service tracker.


getConfigurations

public InternalQueueConfiguration[] getConfigurations()
Return all configurations.


getQueueConfiguration

public InternalQueueConfiguration getQueueConfiguration(JobEvent event)
Find the queue configuration for the job. This method only returns a configuration if one matches.



Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.