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

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

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

The queue manager manages queue configurations.


Nested Class Summary
static class QueueConfigurationManager.QueueInfo
           
 
Constructor Summary
QueueConfigurationManager()
           
 
Method Summary
protected  void activate(org.osgi.framework.BundleContext bundleContext)
          Activate this component.
protected  void deactivate()
          Deactivate this component.
 int getChangeCount()
           
 InternalQueueConfiguration[] getConfigurations()
          Return all configurations.
 InternalQueueConfiguration getMainQueueConfiguration()
           
 QueueConfigurationManager.QueueInfo getQueueInfo(String topic)
          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)
                 throws org.apache.sling.api.resource.LoginException,
                        org.apache.sling.api.resource.PersistenceException
Activate this component. Create the service tracker and start it.

Throws:
org.apache.sling.api.resource.LoginException
org.apache.sling.api.resource.PersistenceException

deactivate

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


getConfigurations

public InternalQueueConfiguration[] getConfigurations()
Return all configurations.


getMainQueueConfiguration

public InternalQueueConfiguration getMainQueueConfiguration()

getQueueInfo

public QueueConfigurationManager.QueueInfo getQueueInfo(String topic)
Find the queue configuration for the job. This method only returns a configuration if one matches.


getChangeCount

public int getChangeCount()


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