@ThreadSafe public class MetricCollectorSupport extends MetricCollector
RequestMetricCollector
MetricCollector.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() |
boolean |
stop()
Stops this collector immediately, dropping all pending metrics in memory.
|
protected MetricCollectorSupport(CloudWatchMetricConfig config)
public boolean start()
start
in class MetricCollector
public boolean stop()
stop
in class MetricCollector
public CloudWatchMetricConfig getConfig()
public AmazonCloudWatchClient getCloudwatchClient()
public final boolean isEnabled()
isEnabled
in class MetricCollector
public RequestMetricCollector getRequestMetricCollector()
getRequestMetricCollector
in class MetricCollector
public ServiceMetricCollector getServiceMetricCollector()
getServiceMetricCollector
in class MetricCollector
Copyright © 2022. All rights reserved.