public abstract class MetricCollector extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MetricCollector.Factory
Can be used to serve as a factory for the request metric collector.
|
Modifier and Type | Field and Description |
---|---|
static MetricCollector |
NONE
A convenient instance of a no-op request metric collector.
|
Constructor and Description |
---|
MetricCollector() |
Modifier and Type | Method and Description |
---|---|
abstract RequestMetricCollector |
getRequestMetricCollector() |
abstract ServiceMetricCollector |
getServiceMetricCollector() |
abstract boolean |
isEnabled()
Returns true if this collector is enabled; false otherwise.
|
abstract boolean |
start()
Starts the request metric collector.
|
abstract boolean |
stop()
Stops the request metric collector.
|
public static final MetricCollector NONE
public abstract boolean start()
public abstract boolean stop()
public abstract boolean isEnabled()
public abstract RequestMetricCollector getRequestMetricCollector()
public abstract ServiceMetricCollector getServiceMetricCollector()