@ThreadSafe public class ServiceMetricCollectorSupport extends ServiceMetricCollector
RequestMetricCollector
ServiceMetricCollector.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.
|
isEnabled
protected ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectByteThroughput(ByteThroughputProvider provider)
ServiceMetricCollector
collectByteThroughput
in class ServiceMetricCollector
public void collectLatency(ServiceLatencyProvider provider)
ServiceMetricCollector
collectLatency
in class ServiceMetricCollector
protected boolean addMetricsToQueue(MetricDatum metric)
Copyright © 2016. All rights reserved.