Class EmptyStatistics
java.lang.Object
org.apache.sling.event.impl.jobs.jmx.EmptyStatistics
- All Implemented Interfaces:
org.apache.sling.event.jobs.Statistics
Dummy stats that just returns 0 for all info, used where the queue doesnt
implement the Statistics interface.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
long
long
long
long
long
long
long
long
long
long
void
reset()
-
Constructor Details
-
EmptyStatistics
public EmptyStatistics()
-
-
Method Details
-
getStartTime
public long getStartTime()- Specified by:
getStartTime
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfFinishedJobs
public long getNumberOfFinishedJobs()- Specified by:
getNumberOfFinishedJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfCancelledJobs
public long getNumberOfCancelledJobs()- Specified by:
getNumberOfCancelledJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfFailedJobs
public long getNumberOfFailedJobs()- Specified by:
getNumberOfFailedJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfProcessedJobs
public long getNumberOfProcessedJobs()- Specified by:
getNumberOfProcessedJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfActiveJobs
public long getNumberOfActiveJobs()- Specified by:
getNumberOfActiveJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfQueuedJobs
public long getNumberOfQueuedJobs()- Specified by:
getNumberOfQueuedJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfJobs
public long getNumberOfJobs()- Specified by:
getNumberOfJobs
in interfaceorg.apache.sling.event.jobs.Statistics
-
getLastActivatedJobTime
public long getLastActivatedJobTime()- Specified by:
getLastActivatedJobTime
in interfaceorg.apache.sling.event.jobs.Statistics
-
getLastFinishedJobTime
public long getLastFinishedJobTime()- Specified by:
getLastFinishedJobTime
in interfaceorg.apache.sling.event.jobs.Statistics
-
getAverageWaitingTime
public long getAverageWaitingTime()- Specified by:
getAverageWaitingTime
in interfaceorg.apache.sling.event.jobs.Statistics
-
getAverageProcessingTime
public long getAverageProcessingTime()- Specified by:
getAverageProcessingTime
in interfaceorg.apache.sling.event.jobs.Statistics
-
reset
public void reset()- Specified by:
reset
in interfaceorg.apache.sling.event.jobs.Statistics
-