List of usage examples for javax.management NotificationEmitter removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException;
From source file:net.centro.rtb.monitoringcenter.metrics.system.jvm.GarbageCollectorMetricSet.java
public void shutdown() { if (gcLogTailer != null) { gcLogTailer.stop();/*from ww w .ja v a2 s.com*/ } for (GarbageCollectorMXBean garbageCollectorMXBean : garbageCollectorMXBeans) { if (NotificationEmitter.class.isInstance(garbageCollectorMXBean)) { NotificationEmitter emitter = NotificationEmitter.class.cast(garbageCollectorMXBean); try { emitter.removeNotificationListener(gcEventListener); } catch (ListenerNotFoundException ignore) { } } } }