@Override public RequestMetricCollector getRequestMetricsCollector() { return request.getRequestMetricCollector(); }
public RequestMetricCollector getRequestMetricCollector() { return getRequest().getRequestMetricCollector(); }
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. */ protected final boolean isRequestMetricsEnabled(AmazonWebServiceRequest req) { RequestMetricCollector c = req.getRequestMetricCollector(); // request level collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }
/** * Common routine to end a client AWS request/response execution and collect * the request metrics. Caller of this routine is responsible for starting * the event for {@link Field#ClientExecuteTime} and call this method * in a try-finally block. * * @param loggingAwsRequestMetrics deprecated and ignored */ protected final void endClientExecution( AWSRequestMetrics awsRequestMetrics, Request<?> request, Response<?> response, @Deprecated boolean loggingAwsRequestMetrics) { if (request != null) { awsRequestMetrics.endEvent(Field.ClientExecuteTime); awsRequestMetrics.getTimingInfo().endTiming(); RequestMetricCollector c = findRequestMetricCollector( request.getOriginalRequest().getRequestMetricCollector()); c.collectMetrics(request, response); awsRequestMetrics.log(); } }
.withRequestMetricCollector(req.getRequestMetricCollector())
@Override public RequestMetricCollector getRequestMetricsCollector() { return request.getRequestMetricCollector(); }
keyGenReq .withGeneralProgressListener(req.getGeneralProgressListener()) .withRequestMetricCollector(req.getRequestMetricCollector())
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. */ protected final boolean isRequestMetricsEnabled(AmazonWebServiceRequest req) { RequestMetricCollector c = req.getRequestMetricCollector(); // request level collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }
/** * @return the most specific request metric collector, starting from the * request level, then client level, then finally the AWS SDK level. * * @deprecated metrics is deprecated */ @Deprecated protected final RequestMetricCollector findRequestMetricCollector(final Request<?> req) { final AmazonWebServiceRequest origReq = req.getOriginalRequest(); RequestMetricCollector mc = origReq.getRequestMetricCollector(); if (mc != null) { return mc; } mc = getRequestMetricsCollector(); return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc; }
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. * * @deprecated metrics is deprecated */ @Deprecated protected final boolean isRequestMetricsEnabled(final AmazonWebServiceRequest req) { final RequestMetricCollector c = req.getRequestMetricCollector(); // request // level // collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }
/** * Common routine to end a client AWS request/response execution and collect * the request metrics. Caller of this routine is responsible for starting * the event for {@link Field#ClientExecuteTime} and call this method * in a try-finally block. * * @param loggingAwsRequestMetrics deprecated and ignored */ protected final void endClientExecution( AWSRequestMetrics awsRequestMetrics, Request<?> request, Response<?> response, @Deprecated boolean loggingAwsRequestMetrics) { if (request != null) { awsRequestMetrics.endEvent(Field.ClientExecuteTime); awsRequestMetrics.getTimingInfo().endTiming(); RequestMetricCollector c = findRequestMetricCollector( request.getOriginalRequest().getRequestMetricCollector()); c.collectMetrics(request, response); awsRequestMetrics.log(); } }
encryptRequest .withGeneralProgressListener(req.getGeneralProgressListener()) .withRequestMetricCollector(req.getRequestMetricCollector()); final EncryptResult encryptResult = kms.encrypt(encryptRequest); final byte[] keyBlob = copyAllBytesFrom(encryptResult.getCiphertextBlob());
@Override public RequestMetricCollector getRequestMetricsCollector() { return request.getRequestMetricCollector(); }
keyGenReq .withGeneralProgressListener(req.getGeneralProgressListener()) .withRequestMetricCollector(req.getRequestMetricCollector()); final GenerateDataKeyResult keyGenRes = kms.generateDataKey(keyGenReq); final SecretKey cek =
public RequestMetricCollector getRequestMetricCollector() { return getRequest().getRequestMetricCollector(); }
/** * @return the most specific request metric collector, starting from the * request level, then client level, then finally the AWS SDK level. * * @deprecated metrics is deprecated */ @Deprecated protected final RequestMetricCollector findRequestMetricCollector(final Request<?> req) { final AmazonWebServiceRequest origReq = req.getOriginalRequest(); RequestMetricCollector mc = origReq.getRequestMetricCollector(); if (mc != null) { return mc; } mc = getRequestMetricsCollector(); return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc; }
/** * @return the most specific request metric collector, starting from the * request level, then client level, then finally the AWS SDK level. * * @deprecated metrics is deprecated */ @Deprecated protected final RequestMetricCollector findRequestMetricCollector(final Request<?> req) { final AmazonWebServiceRequest origReq = req.getOriginalRequest(); RequestMetricCollector mc = origReq.getRequestMetricCollector(); if (mc != null) { return mc; } mc = getRequestMetricsCollector(); return mc == null ? AwsSdkMetrics.getRequestMetricCollector() : mc; }
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. * * @deprecated metrics is deprecated */ @Deprecated protected final boolean isRequestMetricsEnabled(final AmazonWebServiceRequest req) { final RequestMetricCollector c = req.getRequestMetricCollector(); // request // level // collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. */ protected final boolean isRequestMetricsEnabled(AmazonWebServiceRequest req) { RequestMetricCollector c = req.getRequestMetricCollector(); // request level collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }
/** * Returns true if request metric collection is applicable to the given * request; false otherwise. * * @deprecated metrics is deprecated */ @Deprecated protected final boolean isRequestMetricsEnabled(final AmazonWebServiceRequest req) { final RequestMetricCollector c = req.getRequestMetricCollector(); // request // level // collector if (c != null && c.isEnabled()) { return true; } return isRMCEnabledAtClientOrSdkLevel(); }