public void unregisterAll(){
  try {
    ObjectName name=new ObjectName(OBJECTNAME__PREFIX + "*");
    Set<ObjectName> gemFireObjects=mbeanServer.queryNames(name,null);
    for (    ObjectName objectName : gemFireObjects) {
      unregisterMBean(objectName);
    }
  }
 catch (  MalformedObjectNameException e) {
    throw new ManagementException(e);
  }
catch (  NullPointerException e) {
    throw new ManagementException(e);
  }
}

public void unregisterAll ( ) { try { ObjectName name = new ObjectName ( OBJECTNAME__PREFIX + "*" ) ; Set < ObjectName > gemFireObjects = mbeanServer . queryNames ( name , null ) ; for ( ObjectName objectName : gemFireObjects ) { unregisterMBean ( objectName ) ; } } catch ( MalformedObjectNameException e ) { throw new ManagementException ( e ) ; } catch ( NullPointerException e ) { throw new ManagementException ( e ) ; } }
method to unregister all the local gemfire mbeans
