Class RequestMetricCollectorSupport

java.lang.Object
com.amazonaws.metrics.RequestMetricCollector
com.amazonaws.metrics.internal.cloudwatch.RequestMetricCollectorSupport

public class RequestMetricCollectorSupport extends RequestMetricCollector
This is the default implementation of an AWS SDK request metric collection system.
See Also:
  • Field Details

    • log

      protected static final org.apache.commons.logging.Log log
  • Constructor Details

  • Method Details

    • collectMetrics

      public 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.
      Specified by:
      collectMetrics in class RequestMetricCollector
      See Also:
    • addMetricsToQueue

      protected boolean addMetricsToQueue(MetricDatum metric)
      Adds the given metric to the queue, returning true if successful or false if no space available.
    • getTransformer

      protected PredefinedMetricTransformer getTransformer()
      Returns the predefined metrics transformer.