|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetricsSystem
The metrics system interface
Nested Class Summary | |
---|---|
static class |
MetricsSystem.AbstractCallback
Convenient abstract class for implementing callback interface |
static interface |
MetricsSystem.Callback
The metrics system callback interface |
Method Summary | ||
---|---|---|
void |
publishMetricsNow()
Requests an immediate publish of all metrics from sources to sinks. |
|
void |
register(MetricsSystem.Callback callback)
Register a callback interface for JMX events |
|
|
register(String name,
String desc,
T sink)
Register a metrics sink |
|
|
register(String name,
String desc,
T source)
Register a metrics source |
|
void |
shutdown()
Shutdown the metrics system completely (usually during server shutdown.) The MetricsSystemMXBean will be unregistered. |
Methods inherited from interface org.apache.hadoop.metrics2.MetricsSystemMXBean |
---|
currentConfig, refreshMBeans, start, stop |
Method Detail |
---|
<T extends MetricsSource> T register(String name, String desc, T source)
T
- the type of the sourcesource
- to registername
- of the source. Must be unique.desc
- the description of the source.
MetricsException
<T extends MetricsSink> T register(String name, String desc, T sink)
T
- the type of the sinksink
- to registername
- of the sink. Must be unique.desc
- the description of the sink
MetricsException
void register(MetricsSystem.Callback callback)
callback
- the callback object implementing the MBean interface.void publishMetricsNow()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |