org.apache.sling.event.jobs
Interface TopicStatistics


public interface TopicStatistics

Statistic information about a topic. This information is not preserved between restarts of the service. Once a service is restarted, the counters start at zero!

Since:
3.0

Method Summary
 long getAverageProcessingTime()
          The average processing time of a job - this only counts finished jobs.
 long getAverageWaitingTime()
          The average waiting time of a job in the queue.
 long getLastActivatedJobTime()
          The time a job has been started last.
 long getLastFinishedJobTime()
          The time a job has been finished/failed/cancelled last.
 long getNumberOfCancelledJobs()
          Number of permanently failing or cancelled jobs.
 long getNumberOfFailedJobs()
          Number of failing jobs.
 long getNumberOfFinishedJobs()
          Number of successfully finished jobs.
 long getNumberOfProcessedJobs()
          Number of already processed jobs.
 String getTopic()
          The topic this statistics is about.
 

Method Detail

getTopic

String getTopic()
The topic this statistics is about.


getNumberOfFinishedJobs

long getNumberOfFinishedJobs()
Number of successfully finished jobs.


getNumberOfCancelledJobs

long getNumberOfCancelledJobs()
Number of permanently failing or cancelled jobs.


getNumberOfFailedJobs

long getNumberOfFailedJobs()
Number of failing jobs.


getNumberOfProcessedJobs

long getNumberOfProcessedJobs()
Number of already processed jobs. This adds getNumberOfFinishedJobs(), getNumberOfCancelledJobs() and getNumberOfFailedJobs()


getLastActivatedJobTime

long getLastActivatedJobTime()
The time a job has been started last.


getLastFinishedJobTime

long getLastFinishedJobTime()
The time a job has been finished/failed/cancelled last.


getAverageWaitingTime

long getAverageWaitingTime()
The average waiting time of a job in the queue.


getAverageProcessingTime

long getAverageProcessingTime()
The average processing time of a job - this only counts finished jobs.



Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.