org.apache.hadoop.metrics2
Interface MetricsSystemMXBean

All Known Implementing Classes:
MetricsSystem

@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface MetricsSystemMXBean

The JMX interface to the metrics system


Method Summary
 String currentConfig()
           
 void start()
          Start the metrics system
 void startMetricsMBeans()
          Start metrics MBeans
 void stop()
          Stop the metrics system
 void stopMetricsMBeans()
          Stop metrics MBeans.
 

Method Detail

start

void start()
Start the metrics system

Throws:
MetricsException

stop

void stop()
Stop the metrics system

Throws:
MetricsException

startMetricsMBeans

void startMetricsMBeans()
Start metrics MBeans

Throws:
MetricsException

stopMetricsMBeans

void stopMetricsMBeans()
Stop metrics MBeans. Note, it doesn't stop the metrics system control MBean, i.e this interface.

Throws:
MetricsException

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.