public class StatisticsImpl extends BaseStatisticsImpl implements org.apache.sling.event.jobs.Statistics
| Constructor and Description |
|---|
StatisticsImpl() |
StatisticsImpl(long startTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(StatisticsImpl other)
Add another statistics information.
|
void |
addActive(long queueTime)
Add a job from the queue to status active
|
void |
cancelledJob()
Add a cancelled job.
|
void |
clearQueued()
Clear all queued
|
void |
copyFrom(StatisticsImpl other)
Create a new statistics object with exactly the same values.
|
void |
decQueued()
Job not processed by us
|
void |
failedJob()
Add a failed job.
|
void |
finishedJob(long jobTime)
Add a finished job
|
long |
getNumberOfActiveJobs() |
long |
getNumberOfJobs() |
long |
getNumberOfQueuedJobs() |
long |
getStartTime() |
void |
incQueued()
New job in the queue
|
void |
reset() |
add, copyFrom, getAverageProcessingTime, getAverageWaitingTime, getLastActivatedJobTime, getLastFinishedJobTime, getNumberOfCancelledJobs, getNumberOfFailedJobs, getNumberOfFinishedJobs, getNumberOfProcessedJobspublic StatisticsImpl()
public StatisticsImpl(long startTime)
public long getStartTime()
getStartTime in interface org.apache.sling.event.jobs.StatisticsStatistics.getStartTime()public long getNumberOfActiveJobs()
getNumberOfActiveJobs in interface org.apache.sling.event.jobs.StatisticsStatistics.getNumberOfActiveJobs()public long getNumberOfQueuedJobs()
getNumberOfQueuedJobs in interface org.apache.sling.event.jobs.StatisticsStatistics.getNumberOfQueuedJobs()public long getNumberOfJobs()
getNumberOfJobs in interface org.apache.sling.event.jobs.StatisticsStatistics.getNumberOfJobs()public void finishedJob(long jobTime)
finishedJob in class BaseStatisticsImpljobTime - The processing time for this job.public void failedJob()
failedJob in class BaseStatisticsImplpublic void cancelledJob()
cancelledJob in class BaseStatisticsImplpublic void incQueued()
public void decQueued()
public void clearQueued()
public void addActive(long queueTime)
addActive in class BaseStatisticsImplqueueTime - The time the job stayed in the queue.public void add(StatisticsImpl other)
public void copyFrom(StatisticsImpl other)
public void reset()
reset in interface org.apache.sling.event.jobs.Statisticsreset in class BaseStatisticsImplStatistics.reset()Copyright © 2007–2023 The Apache Software Foundation. All rights reserved.