Package org.apache.hadoop.metrics2
Interface MetricsSystemMXBean
- All Known Implementing Classes:
MetricsSystem
@Public
@Evolving
public interface MetricsSystemMXBean
The JMX interface to the metrics system
-
Method Details
-
start
void start()Start the metrics system- Throws:
MetricsException- Metrics Exception.
-
stop
void stop()Stop the metrics system- Throws:
MetricsException- Metrics Exception.
-
startMetricsMBeans
void startMetricsMBeans()Start metrics MBeans- Throws:
MetricsException- Metrics Exception.
-
stopMetricsMBeans
void stopMetricsMBeans()Stop metrics MBeans. Note, it doesn't stop the metrics system control MBean, i.e this interface.- Throws:
MetricsException- Metrics Exception.
-
currentConfig
String currentConfig()- Returns:
- the current config Avoided getConfig, as it'll turn into a "Config" attribute, which doesn't support multiple line values in jconsole.
- Throws:
MetricsException- Metrics Exception.
-