Package com.amazonaws.metrics

Examples of com.amazonaws.metrics.RequestMetricCollector


    /**
     * Returns the client specific request metric collector if there is one; or
     * the one at the AWS SDK level otherwise.
     */
    protected RequestMetricCollector requestMetricCollector() {
        RequestMetricCollector mc = client.getRequestMetricCollector();
        return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
    }
View Full Code Here


            response = execute0(request, responseHandler, errorResponseHandler,
                                executionContext);
            return response;
        } finally {
            awsRequestMetrics.endEvent(Field.ClientExecuteTime);
            RequestMetricCollector c = requestMetricCollector(request);
            c.collectMetrics(request, response);;
        }
    }
View Full Code Here

     * Returns the most specific request metric collector, starting from the
     * request level, then client level, then finally the AWS SDK level.
     */
    private RequestMetricCollector requestMetricCollector(Request<?> req) {
        AmazonWebServiceRequest origReq = req.getOriginalRequest();
        RequestMetricCollector mc = origReq.getRequestMetricCollector();
        if (mc != null) {
            return mc;
        }
        mc = requestMetricCollector;
        return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc;
View Full Code Here

TOP

Related Classes of com.amazonaws.metrics.RequestMetricCollector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.