|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.metrics.MetricCollector
public abstract class MetricCollector
Metric Collector SPI. This is a class instead of interface so in case of adding new methods in the future we can do that safetly without breaking any existing clients that implements this SPI.
Nested Class Summary | |
---|---|
static interface |
MetricCollector.Factory
Can be used to serve as a factory for the request metric collector. |
Field Summary | |
---|---|
static MetricCollector |
NONE
A convenient instance of a no-op request metric collector. |
Constructor Summary | |
---|---|
MetricCollector()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MetricCollector NONE
Constructor Detail |
---|
public MetricCollector()
Method Detail |
---|
public abstract boolean start()
public abstract boolean stop()
public abstract boolean isEnabled()
public abstract RequestMetricCollector getRequestMetricCollector()
public abstract ServiceMetricCollector getServiceMetricCollector()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |