Class StatisticsManager
- java.lang.Object
-
- org.apache.sling.event.impl.jobs.stats.StatisticsManager
-
public class StatisticsManager extends Object
The statistics manager keeps track of all statistics related tasks.
-
-
Constructor Summary
Constructors Constructor Description StatisticsManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidactivate()protected voiddeactivate()org.apache.sling.event.jobs.StatisticsgetGlobalStatistics()Get the global statistics.org.apache.sling.event.jobs.StatisticsgetQueueStatistics(String queueName)Get a single queue statistics.Map<String,org.apache.sling.event.jobs.TopicStatistics>getTopicStatistics()Get all topic statistics.voidjobDequeued(String queueName, String topic)voidjobEnded(String queueName, String topic, InternalJobState state, long processingTime)voidjobQueued(String queueName, String topic)voidjobStarted(String queueName, String topic, long queueTime)
-
-
-
Method Detail
-
getGlobalStatistics
public org.apache.sling.event.jobs.Statistics getGlobalStatistics()
Get the global statistics.- Returns:
- The global statistics.
-
getTopicStatistics
public Map<String,org.apache.sling.event.jobs.TopicStatistics> getTopicStatistics()
Get all topic statistics.- Returns:
- The map of topic statistics by topic.
-
getQueueStatistics
public org.apache.sling.event.jobs.Statistics getQueueStatistics(String queueName)
Get a single queue statistics.- Parameters:
queueName- The queue name.- Returns:
- The statistics for that queue.
-
jobEnded
public void jobEnded(String queueName, String topic, InternalJobState state, long processingTime)
-
activate
protected void activate()
-
deactivate
protected void deactivate()
-
-