@ThreadSafe
public class RequestMetricCollectorSupport
extends com.amazonaws.metrics.RequestMetricCollector
RequestMetricCollector| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Modifier | Constructor and Description |
|---|---|
protected |
RequestMetricCollectorSupport(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 |
collectMetrics(com.amazonaws.Request<?> request,
com.amazonaws.Response<?> response)
Collects the metrics at the end of a request/response cycle, transforms
the metric data points into a cloud watch metric datum representation,
and then adds it to a memory queue so it will get summarized into the
necessary statistics and uploaded to Amazon CloudWatch.
|
protected PredefinedMetricTransformer |
getTransformer()
Returns the predefined metrics transformer.
|
protected RequestMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectMetrics(com.amazonaws.Request<?> request,
com.amazonaws.Response<?> response)
collectMetrics in class com.amazonaws.metrics.RequestMetricCollectorprotected boolean addMetricsToQueue(MetricDatum metric)
protected PredefinedMetricTransformer getTransformer()
Copyright © 2014. All rights reserved.