private void unregisterJmxExpose ( ) { if ( jmxNames . isEmpty ( ) ) { return ; } try { final MBeanServer platformMBeanServer = MBeans . getPlatformMBeanServer ( ) ; for ( final ObjectName name : jmxNames ) { platformMBeanServer . unregisterMBean ( name ) ; } } catch ( final JMException e ) { LOG . warn ( "failed to unregister JMX beans" , e ) ; } }
Unregisters CounterRequestMXBean beans .