117118119120121122123124125126127
synchronized (REGISTRIES) { Map<String, JmxReporter> reporters = REGISTRIES.get(getContext().getMetricRegistry()); if (reporters != null) { JmxReporter reporter = reporters.remove(domain); if (reporter != null) { reporter.stop(); } } } } }
115116117118119120121122123124125
129130131132133134135136137138
LOG.debug("Unbinding the UDP port"); server.unbind(); } catch (final InterruptedException e) { LOG.error("Interrupted exception", e); } finally { reporter.stop(); } } }