@ThreadSafe public class ServiceMetricCollectorSupport extends ServiceMetricCollector
RequestMetricCollectorServiceMetricCollector.Factory| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
NONE| Modifier | Constructor and Description |
|---|---|
protected |
ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addMetricsToQueue(MetricDatum metric)
Adds the given metric to the queue, returning true if successful or false otherwise.
|
void |
collectByteThroughput(ByteThroughputProvider provider)
Collects metrics on the number of bytes written or read and the respective
duration.
|
void |
collectLatency(ServiceLatencyProvider provider)
Collects metrics for non-request specific latencies.
|
isEnabledprotected ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectByteThroughput(ByteThroughputProvider provider)
ServiceMetricCollectorcollectByteThroughput in class ServiceMetricCollectorpublic void collectLatency(ServiceLatencyProvider provider)
ServiceMetricCollectorcollectLatency in class ServiceMetricCollectorprotected boolean addMetricsToQueue(MetricDatum metric)
Copyright © 2016. All rights reserved.