@ThreadSafe public class MetricCollectorSupport extends MetricCollector
RequestMetricCollectorMetricCollector.Factory| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
NONE| Modifier | Constructor and Description |
|---|---|
protected |
MetricCollectorSupport(CloudWatchMetricConfig config) |
| Modifier and Type | Method and 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.
|
protected MetricCollectorSupport(CloudWatchMetricConfig config)
public boolean start()
MetricCollectorstart in class MetricCollectorpublic boolean stop()
stop in class MetricCollectorpublic CloudWatchMetricConfig getConfig()
public AmazonCloudWatchClient getCloudwatchClient()
public final boolean isEnabled()
isEnabled in class MetricCollectorpublic RequestMetricCollector getRequestMetricCollector()
getRequestMetricCollector in class MetricCollectorpublic ServiceMetricCollector getServiceMetricCollector()
getServiceMetricCollector in class MetricCollectorCopyright © 2016. All rights reserved.