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.Loglog-
Fields inherited from class com.amazonaws.metrics.MetricCollector
NONE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetricCollectorSupport(CloudWatchMetricConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmazonCloudWatchClientgetCloudwatchClient()CloudWatchMetricConfiggetConfig()Returns the configuration.RequestMetricCollectorgetRequestMetricCollector()ServiceMetricCollectorgetServiceMetricCollector()booleanisEnabled()Always returns true.booleanstart()Starts the request metric collector.booleanstop()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:MetricCollectorStarts the request metric collector.- Specified by:
startin 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:
stopin 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:
isEnabledin classMetricCollector
-
getRequestMetricCollector
public RequestMetricCollector getRequestMetricCollector()
- Specified by:
getRequestMetricCollectorin classMetricCollector
-
getServiceMetricCollector
public ServiceMetricCollector getServiceMetricCollector()
- Specified by:
getServiceMetricCollectorin classMetricCollector
-
-