public class QueueSizeMovingAverageTask extends MovingAverageTask implements Runnable
average, DEFAULT_WEIGHT, log, name, nsamples, sampleTask, w
Constructor and Description |
---|
QueueSizeMovingAverageTask(String name,
BlockingQueue<?> queue) |
QueueSizeMovingAverageTask(String name,
BlockingQueue<?> queue,
double w)
Core impl.
|
Modifier and Type | Method and Description |
---|---|
double |
getAverageQueueSize()
The size of the queue (moving average).
|
getMovingAverage, getMovingAverage, getSampleCount, getWeight, run
public QueueSizeMovingAverageTask(String name, BlockingQueue<?> queue)
name
- The label for the service.queue
- The queue to be monitored.public QueueSizeMovingAverageTask(String name, BlockingQueue<?> queue, double w)
name
- The label for the service.queue
- The queue to be monitored.w
- The weight to be used by
MovingAverageTask.getMovingAverage(double, double, double)
public double getAverageQueueSize()
IQueueCounters.AverageQueueSize
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.