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.Loglog-
Fields inherited from class com.amazonaws.metrics.ServiceMetricCollector
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServiceMetricCollectorSupport(BlockingQueue<MetricDatum> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanaddMetricsToQueue(MetricDatum metric)Adds the given metric to the queue, returning true if successful or false if no space available.voidcollectByteThroughput(ByteThroughputProvider provider)Collects metrics on the number of bytes written or read and the respective duration.voidcollectLatency(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:ServiceMetricCollectorCollects metrics on the number of bytes written or read and the respective duration.- Specified by:
collectByteThroughputin classServiceMetricCollector
-
collectLatency
public void collectLatency(ServiceLatencyProvider provider)
Description copied from class:ServiceMetricCollectorCollects metrics for non-request specific latencies.- Specified by:
collectLatencyin classServiceMetricCollector
-
addMetricsToQueue
protected boolean addMetricsToQueue(MetricDatum metric)
Adds the given metric to the queue, returning true if successful or false if no space available.
-
-