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 MetricCollector
MetricCollector.Factory -
Field Summary
FieldsFields inherited from class 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: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
Returns the configuration. -
getCloudwatchClient
-
isEnabled
public final boolean isEnabled()Always returns true.- Specified by:
isEnabledin classMetricCollector
-
getRequestMetricCollector
- Specified by:
getRequestMetricCollectorin classMetricCollector
-
getServiceMetricCollector
- Specified by:
getServiceMetricCollectorin classMetricCollector
-