@Service(value={org.osgi.service.event.EventHandler.class,StatisticsManager.class}) @Properties(value=@Property(name="event.topics",value={"org/apache/sling/event/notification/job/ADDED","org/apache/sling/event/notification/job/START","org/apache/sling/event/notification/job/CANCELLED","org/apache/sling/event/notification/job/FAILED","org/apache/sling/event/notification/job/FINISHED","org/apache/sling/event/notification/job/REMOVED"})) public class StatisticsManager extends Object implements org.osgi.service.event.EventHandler
Constructor and Description |
---|
StatisticsManager() |
Modifier and Type | Method and Description |
---|---|
Statistics |
getGlobalStatistics()
Get the global statistics.
|
Statistics |
getQueueStatistics(String queueName)
Get a single queue statistics.
|
Map<String,TopicStatistics> |
getTopicStatistics()
Get all topic statistics.
|
void |
handleEvent(org.osgi.service.event.Event event)
Handle all job notification events and update the statistics.
|
public Statistics getGlobalStatistics()
public Map<String,TopicStatistics> getTopicStatistics()
public Statistics getQueueStatistics(String queueName)
queueName
- The queue name.public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.