@Test public void cleansUpAfterItselfWhenStopped() throws Exception { reporter.stop(); try { getAttributes("gauge", "Value"); Assertions.failBecauseExceptionWasNotThrown(InstanceNotFoundException.class); } catch (InstanceNotFoundException e) { } }
public void stop() { registry.removeListener(listener); listener.unregisterAll(); }
JmxReporter implements Closeable { public void stop() { registry.removeListener(listener); listener.unregisterAll(); } }
JmxReporter implements Closeable { public void stop() { registry.removeListener(listener); listener.unregisterAll(); } private  JmxReporter(MBeanServer mBeanServer,
                        String domain,
                        MetricRegistry registry,
                        MetricFilter filter,
                        MetricTimeUnits timeUnits,
                        ObjectNameFactory objectNameFactory); }
JmxReporter implements Closeable { public void stop() { registry.removeListener(listener); listener.unregisterAll(); } private  JmxReporter(MBeanServer mBeanServer,
                        String domain,
                        MetricRegistry registry,
                        MetricFilter filter,
                        MetricTimeUnits timeUnits,
                        ObjectNameFactory objectNameFactory); static Builder forRegistry(MetricRegistry registry); void start(); void stop(); @Override void close(); }
JmxReporter implements Closeable { public void stop() { registry.removeListener(listener); listener.unregisterAll(); } private  JmxReporter(MBeanServer mBeanServer,
                        String domain,
                        MetricRegistry registry,
                        MetricFilter filter,
                        MetricTimeUnits timeUnits,
                        ObjectNameFactory objectNameFactory); static Builder forRegistry(MetricRegistry registry); void start(); void stop(); @Override void close();  }