public static void removeStatsInstance ( StatsInstance instance ) throws StatsFactoryException { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , new StringBuffer ( "removeStatsInstance:name=" ) . append ( instance . getName ( ) ) . toString ( ) ) ; StatsFactoryUtil . unRegisterStats ( ( PmiModule ) instance , instance . getMBean ( ) ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "removeStatsInstance" ) ; }
Removes a StatsInstance from the PMI tree . Note that any children under the instance will also be removed . If the instance is associated with a default CustomStats MBean the MBean will be de - activated .