Class MetricCollectorSupport
- java.lang.Object
-
- com.amazonaws.metrics.MetricCollector
-
- com.amazonaws.metrics.internal.cloudwatch.MetricCollectorSupport
-
public class MetricCollectorSupport extends MetricCollector
This is the default implementation of an AWS SDK request metric collection system.- See Also:
RequestMetricCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.metrics.MetricCollector
MetricCollector.Factory
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.Log
log
-
Fields inherited from class com.amazonaws.metrics.MetricCollector
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MetricCollectorSupport(CloudWatchMetricConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmazonCloudWatchClient
getCloudwatchClient()
CloudWatchMetricConfig
getConfig()
Returns the configuration.RequestMetricCollector
getRequestMetricCollector()
ServiceMetricCollector
getServiceMetricCollector()
boolean
isEnabled()
Always returns true.boolean
start()
Starts the request metric collector.boolean
stop()
Stops this collector immediately, dropping all pending metrics in memory.
-
-
-
Constructor Detail
-
MetricCollectorSupport
protected MetricCollectorSupport(CloudWatchMetricConfig config)
-
-
Method Detail
-
start
public boolean start()
Description copied from class:MetricCollector
Starts the request metric collector.- Specified by:
start
in classMetricCollector
- Returns:
- true if the collector is successfully started; false otherwise.
-
stop
public boolean stop()
Stops this collector immediately, dropping all pending metrics in memory.- Specified by:
stop
in classMetricCollector
- Returns:
- true if the collector is successfully stopped; false if the collector is not running and therefore the call has no effect.
-
getConfig
public CloudWatchMetricConfig getConfig()
Returns the configuration.
-
getCloudwatchClient
public AmazonCloudWatchClient getCloudwatchClient()
-
isEnabled
public final boolean isEnabled()
Always returns true.- Specified by:
isEnabled
in classMetricCollector
-
getRequestMetricCollector
public RequestMetricCollector getRequestMetricCollector()
- Specified by:
getRequestMetricCollector
in classMetricCollector
-
getServiceMetricCollector
public ServiceMetricCollector getServiceMetricCollector()
- Specified by:
getServiceMetricCollector
in classMetricCollector
-
-