@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
if no space available.
|
void |
collectByteThroughput(ByteThroughputProvider provider) |
void |
collectLatency(ServiceLatencyProvider provider) |
isEnabledprotected ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectByteThroughput(ByteThroughputProvider provider)
collectByteThroughput in class ServiceMetricCollectorpublic void collectLatency(ServiceLatencyProvider provider)
collectLatency in class ServiceMetricCollectorprotected boolean addMetricsToQueue(MetricDatum metric)
Copyright © 2017. All rights reserved.