Class MetricCollectorSupport
java.lang.Object
com.amazonaws.metrics.MetricCollector
com.amazonaws.metrics.internal.cloudwatch.MetricCollectorSupport
This is the default implementation of an AWS SDK request metric collection
system.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.metrics.MetricCollector
MetricCollector.Factory
-
Field Summary
FieldsFields inherited from class com.amazonaws.metrics.MetricCollector
NONE
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
log
protected static final org.apache.commons.logging.Log log
-
-
Constructor Details
-
MetricCollectorSupport
-
-
Method Details
-
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
Returns the configuration. -
getCloudwatchClient
-
isEnabled
public final boolean isEnabled()Always returns true.- Specified by:
isEnabled
in classMetricCollector
-
getRequestMetricCollector
- Specified by:
getRequestMetricCollector
in classMetricCollector
-
getServiceMetricCollector
- Specified by:
getServiceMetricCollector
in classMetricCollector
-