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