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 void
activate()
protected void
org.apache.sling.event.jobs.Statistics
Get the global statistics.org.apache.sling.event.jobs.Statistics
getQueueStatistics
(String queueName) Get a single queue statistics.Get all topic statistics.void
jobDequeued
(String queueName, String topic) void
jobEnded
(String queueName, String topic, InternalJobState state, long processingTime) void
void
jobStarted
(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()
-