@InterfaceAudience.Private
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.