Class AbstractJobStatistics
- java.lang.Object
-
- javax.management.StandardMBean
-
- org.apache.sling.event.impl.jobs.jmx.AbstractJobStatistics
-
- All Implemented Interfaces:
DynamicMBean,MBeanRegistration,org.apache.sling.event.jobs.jmx.StatisticsMBean,org.apache.sling.event.jobs.Statistics
- Direct Known Subclasses:
AllJobStatisticsMBean,QueueMBeanImpl
public abstract class AbstractJobStatistics extends StandardMBean implements org.apache.sling.event.jobs.jmx.StatisticsMBean
-
-
Constructor Summary
Constructors Constructor Description AbstractJobStatistics()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longgetAverageProcessingTime()longgetAverageWaitingTime()DategetLastActivatedJobDate()longgetLastActivatedJobTime()DategetLastFinishedJobDate()longgetLastFinishedJobTime()longgetNumberOfActiveJobs()longgetNumberOfCancelledJobs()longgetNumberOfFailedJobs()longgetNumberOfFinishedJobs()longgetNumberOfJobs()longgetNumberOfProcessedJobs()longgetNumberOfQueuedJobs()DategetStartDate()longgetStartTime()protected abstract org.apache.sling.event.jobs.StatisticsgetStatistics()voidreset()-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Method Detail
-
getStatistics
protected abstract org.apache.sling.event.jobs.Statistics getStatistics()
-
getAverageProcessingTime
public long getAverageProcessingTime()
- Specified by:
getAverageProcessingTimein interfaceorg.apache.sling.event.jobs.Statistics
-
getAverageWaitingTime
public long getAverageWaitingTime()
- Specified by:
getAverageWaitingTimein interfaceorg.apache.sling.event.jobs.Statistics
-
getLastActivatedJobTime
public long getLastActivatedJobTime()
- Specified by:
getLastActivatedJobTimein interfaceorg.apache.sling.event.jobs.Statistics
-
getLastFinishedJobTime
public long getLastFinishedJobTime()
- Specified by:
getLastFinishedJobTimein interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfActiveJobs
public long getNumberOfActiveJobs()
- Specified by:
getNumberOfActiveJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfCancelledJobs
public long getNumberOfCancelledJobs()
- Specified by:
getNumberOfCancelledJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getStartTime
public long getStartTime()
- Specified by:
getStartTimein interfaceorg.apache.sling.event.jobs.Statistics
-
getStartDate
public Date getStartDate()
- Specified by:
getStartDatein interfaceorg.apache.sling.event.jobs.jmx.StatisticsMBean
-
getNumberOfFinishedJobs
public long getNumberOfFinishedJobs()
- Specified by:
getNumberOfFinishedJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfFailedJobs
public long getNumberOfFailedJobs()
- Specified by:
getNumberOfFailedJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfProcessedJobs
public long getNumberOfProcessedJobs()
- Specified by:
getNumberOfProcessedJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfQueuedJobs
public long getNumberOfQueuedJobs()
- Specified by:
getNumberOfQueuedJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
getNumberOfJobs
public long getNumberOfJobs()
- Specified by:
getNumberOfJobsin interfaceorg.apache.sling.event.jobs.Statistics
-
reset
public void reset()
- Specified by:
resetin interfaceorg.apache.sling.event.jobs.Statistics
-
getLastActivatedJobDate
public Date getLastActivatedJobDate()
- Specified by:
getLastActivatedJobDatein interfaceorg.apache.sling.event.jobs.jmx.StatisticsMBean
-
getLastFinishedJobDate
public Date getLastFinishedJobDate()
- Specified by:
getLastFinishedJobDatein interfaceorg.apache.sling.event.jobs.jmx.StatisticsMBean
-
-