Class RequestMetricCollectorSupport

    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
    • Method Detail

      • 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:
        Request.getAWSRequestMetrics()
      • addMetricsToQueue

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