Class RequestMetricCollectorSupport
java.lang.Object
com.amazonaws.metrics.RequestMetricCollector
com.amazonaws.metrics.internal.cloudwatch.RequestMetricCollectorSupport
This is the default implementation of an AWS SDK request metric collection
system.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.metrics.RequestMetricCollector
RequestMetricCollector.Factory
-
Field Summary
FieldsFields inherited from class com.amazonaws.metrics.RequestMetricCollector
NONE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
Returns the predefined metrics transformer.Methods inherited from class com.amazonaws.metrics.RequestMetricCollector
isEnabled
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
RequestMetricCollectorSupport
-
-
Method Details
-
collectMetrics
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.- Specified by:
collectMetrics
in classRequestMetricCollector
- See Also:
-
addMetricsToQueue
Adds the given metric to the queue, returning true if successful or false if no space available. -
getTransformer
Returns the predefined metrics transformer.
-