Class StatisticsManager
java.lang.Object
org.apache.sling.event.impl.jobs.stats.StatisticsManager
The statistics manager keeps track of all statistics related tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate()protected voidorg.apache.sling.event.jobs.StatisticsGet the global statistics.org.apache.sling.event.jobs.StatisticsgetQueueStatistics(String queueName) Get a single queue statistics.Get all topic statistics.voidjobDequeued(String queueName, String topic) voidjobEnded(String queueName, String topic, InternalJobState state, long processingTime) voidvoidjobStarted(String queueName, String topic, long queueTime)
-
Constructor Details
-
StatisticsManager
public StatisticsManager()
-
-
Method Details
-
getGlobalStatistics
public org.apache.sling.event.jobs.Statistics getGlobalStatistics()Get the global statistics.- Returns:
- The global statistics.
-
getTopicStatistics
Get all topic statistics.- Returns:
- The map of topic statistics by topic.
-
getQueueStatistics
Get a single queue statistics.- Parameters:
queueName- The queue name.- Returns:
- The statistics for that queue.
-
jobEnded
-
jobStarted
-
jobQueued
-
jobDequeued
-
activate
protected void activate() -
deactivate
protected void deactivate()
-