/** * Stop a {@link JmxReporter} previously created by a call to * {@link #addJmxReporter(String, String)} and release it for GC. Idempotent * between calls to the associated add method. Does nothing before the first * call to the associated add method. */ public synchronized void removeJmxReporter() { if (null != jmxReporter) jmxReporter.stop(); jmxReporter = null; }
@Override public void stop() { mReporter.stop(); }
/** * Stop a {@link JmxReporter} previously created by a call to * {@link #addJmxReporter(String, String)} and release it for GC. Idempotent * between calls to the associated add method. Does nothing before the first * call to the associated add method. */ public synchronized void removeJmxReporter() { if (null != jmxReporter) jmxReporter.stop(); jmxReporter = null; }
public void shutdown() { this.reporter.stop(); }
@Override protected void shutDown() throws Exception { this.jmxReporter.stop(); }
@Override public void stop() { if (reporter != null) { LOG.debug("Stopping..."); reporter.stop(); } else { throw new IllegalStateException("Attempt to stop without preparing " + getClass().getSimpleName()); } } }
@Override public void stop() { if (reporter != null) { LOG.debug("Stopping..."); reporter.stop(); } else { throw new IllegalStateException("Attempt to stop without preparing " + getClass().getSimpleName()); } } }
@Override public void stopReport() { LOG.info("Stoping metrics report!"); reporter.stop(); this.jmx.stop(); }
this.jmxReporter.get().stop();
/** * Stop a {@link JmxReporter} previously created by a call to * {@link #addJmxReporter(String, String)} and release it for GC. Idempotent * between calls to the associated add method. Does nothing before the first * call to the associated add method. */ public synchronized void removeJmxReporter() { if (null != jmxReporter) jmxReporter.stop(); jmxReporter = null; }
void shutdown() { if (jmxReporter != null) jmxReporter.stop(); }
public void shutdown() { this.reporter.stop(); }
@Override public void stop() { if (isRunning()) { getObject().stop(); running = false; } }
/** * Stops the reporter. */ @Override public void close() { stop(); } }
@Override public void stop() { if (jmxReporter != null) { jmxReporter.stop(); } } }
/** * Stop jmx reporter. */ public void stopJmxReporter() { if (jmxReporter != null) { jmxReporter.stop(); } }
@PreDestroy public void destroy() { reporter.stop(); }
public void stop() throws InterruptedException { reporter.stop(); consumerRunner.shutdown(); closeConnection(); } }
@Override public void close() { if (listener != null) { session.getCluster().unregister(listener); listener = null; } if (reporter != null) { reporter.stop(); reporter = null; } }
public void destroy() { mvMapRegistry.forEach( (module, mvMap) -> { mvMap.clear(); }); LOG.info("closing H2OffHeapStore, size = {} ", getSize()); store.getFileStore().close(); store.close(); reporter.stop(); }