public void unregisterMBean ( String storageName , int storageId ) { if ( storageName == null ) { OLogManager . instance ( ) . warnNoDb ( this , "Can not unregister MBean for performance statistics, storage name is null" ) ; } if ( mbeanIsRegistered . compareAndSet ( true , false ) ) { try { final MBeanServer server = ManagementFactory . getPlatformMBeanServer ( ) ; final ObjectName mbeanName = new ObjectName ( getMBeanName ( storageName , storageId ) ) ; server . unregisterMBean ( mbeanName ) ; } catch ( MalformedObjectNameException | InstanceNotFoundException | MBeanRegistrationException e ) { throw OException . wrapException ( new OStorageException ( "Error during unregistration of profiler MBean" ) , e ) ; } } }
Deregisters JMX bean for current manager .