public interface MetricsSystem extends MetricsSystemMXBean
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
MetricsSystem.AbstractCallback
Convenient abstract class for implementing callback interface
|
static interface |
MetricsSystem.Callback
The metrics system callback interface
|
| 限定符和类型 | 方法和说明 |
|---|---|
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
|
<T extends MetricsSink> |
register(String name,
String desc,
T sink)
Register a metrics sink
|
<T extends MetricsSource> |
register(String name,
String desc,
T source)
Register a metrics source
|
void |
shutdown()
Shutdown the metrics system completely (usually during server shutdown.)
|
currentConfig, refreshMBeans, start, stop<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 sinkMetricsExceptionvoid register(MetricsSystem.Callback callback)
callback - the callback object implementing the MBean interface.void publishMetricsNow()
void shutdown()
Copyright © 2009 The Apache Software Foundation