public void remove(String key) {
        T mBeanImpl = null;
        ObjectName objectName = null;
        try {
            //Get mBeanImpl Object from meters map
            if ((mBeanImpl = meters.remove(key)) != null) {
                //Un-Register MXBean for specified Type of Meter (e.g. ServletStats, ThreadPoolStats, etc)
                objectName = MXBeanHelper(mBeanImpl.getClass().getSimpleName(), key, UNREGISTER_MXBEAN, null);
            }

            //Remove from a map where we are maintaining bundle specific MBeans.
            Set<ObjectName> s = MonitoringFrameworkExtender.mxmap.get(monitor);
            if (s != null && objectName != null) {
                s.remove(objectName);
            }

        } catch (Throwable t) {
            if (tc.isDebugEnabled()) {
                Tr.debug(tc, t.getMessage());
            }
        }
    }
public void remove ( String key ) { T mBeanImpl = null ; ObjectName objectName = null ; try { if ( ( mBeanImpl = meters . remove ( key ) ) != null ) { objectName = MXBeanHelper ( mBeanImpl . getClass ( ) . getSimpleName ( ) , key , UNREGISTER_MXBEAN , null ) ; } Set < ObjectName > s = MonitoringFrameworkExtender . mxmap . get ( monitor ) ; if ( s != null && objectName != null ) { s . remove ( objectName ) ; } } catch ( Throwable t ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , t . getMessage ( ) ) ; } } }
remove


There are 3 objectives for this method
1) Remove it from concurrent map, meters.
2) Un-Register MXBean for specified Type of Meter (e.g. ServletStats, ThreadPoolStats, etc)
3) Remove MXBean in a list of Bundle specific MBeans, so when a bundle is removed, we will clean all MXBeans for it.


@param key