org.apache.hadoop.metrics2.impl
Class JmxCacheBuster

java.lang.Object
  extended by org.apache.hadoop.metrics2.impl.JmxCacheBuster

public class JmxCacheBuster
extends Object

JMX caches the beans that have been exported; even after the values are removed from hadoop's metrics system the keys and old values will still remain. This class stops and restarts the Hadoop metrics system, forcing JMX to clear the cache of exported metrics. This class need to be in the o.a.h.metrics2.impl namespace as many of the variables/calls used are package private.


Constructor Summary
JmxCacheBuster()
           
 
Method Summary
static void clearJmxCache()
          For JMX to forget about all previously exported metrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxCacheBuster

public JmxCacheBuster()
Method Detail

clearJmxCache

public static void clearJmxCache()
For JMX to forget about all previously exported metrics.



Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.