Class ServiceMetricCollectorSupport
- java.lang.Object
-
- com.amazonaws.metrics.ServiceMetricCollector
-
- com.amazonaws.metrics.internal.cloudwatch.ServiceMetricCollectorSupport
-
public class ServiceMetricCollectorSupport extends ServiceMetricCollector
This is the default implementation of an AWS SDK service metric collection system.- See Also:
RequestMetricCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.metrics.ServiceMetricCollector
ServiceMetricCollector.Factory
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Fields inherited from class com.amazonaws.metrics.ServiceMetricCollector
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addMetricsToQueue(MetricDatum metric)
Adds the given metric to the queue, returning true if successful or false if no space available.void
collectByteThroughput(ByteThroughputProvider provider)
Collects metrics on the number of bytes written or read and the respective duration.void
collectLatency(ServiceLatencyProvider provider)
Collects metrics for non-request specific latencies.-
Methods inherited from class com.amazonaws.metrics.ServiceMetricCollector
isEnabled
-
-
-
-
Constructor Detail
-
ServiceMetricCollectorSupport
protected ServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
-
-
Method Detail
-
collectByteThroughput
public void collectByteThroughput(ByteThroughputProvider provider)
Description copied from class:ServiceMetricCollector
Collects metrics on the number of bytes written or read and the respective duration.- Specified by:
collectByteThroughput
in classServiceMetricCollector
-
collectLatency
public void collectLatency(ServiceLatencyProvider provider)
Description copied from class:ServiceMetricCollector
Collects metrics for non-request specific latencies.- Specified by:
collectLatency
in classServiceMetricCollector
-
addMetricsToQueue
protected boolean addMetricsToQueue(MetricDatum metric)
Adds the given metric to the queue, returning true if successful or false if no space available.
-
-