@ThreadSafe public class RequestMetricCollectorSupport extends RequestMetricCollector
RequestMetricCollector
RequestMetricCollector.Factory
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
NONE
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(Request<?> request,
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.
|
isEnabled
protected RequestMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
public void collectMetrics(Request<?> request, Response<?> response)
collectMetrics
in class RequestMetricCollector
protected boolean addMetricsToQueue(MetricDatum metric)
protected PredefinedMetricTransformer getTransformer()
Copyright © 2022. All rights reserved.