@Override public void close() { try { this.metricContext.removeNotificationTarget(this.notificationTargetKey); report(); this.closer.close(); } catch (Exception e) { LOGGER.warn("Exception when closing EventReporter", e); } finally { super.close(); } }
public static void shutdown() { if (self != null) { for (ScheduledReporter reporter : self.scheduledReporters) { reporter.stop(); reporter.close(); } if (self.hadoopMetricsStarted) DefaultMetricsSystem.shutdown(); self = null; } }
@Override public void close() { this.producer.close(); super.close(); }
@Override public void close() { super.close(); for (RrdDb cur : dbPerMetric.values()) { try { cur.close(); } catch (IOException e) { LOG.error("unable to close: " + cur.getPath(), e); } } dbPerMetric.clear(); }
@Override public void close() { try { this.metricContext.removeNotificationTarget(this.notificationTargetKey); report(); this.closer.close(); } catch (Exception e) { LOGGER.warn("Exception when closing EventReporter", e); } finally { super.close(); } }
@Override public void close() { try { this.metricContext.removeNotificationTarget(this.notificationTargetKey); report(); this.closer.close(); } catch (Exception e) { LOGGER.warn("Exception when closing EventReporter", e); } finally { super.close(); } }
public static void shutdown() { if (self != null) { for (ScheduledReporter reporter : self.scheduledReporters) { reporter.stop(); reporter.close(); } if (self.hadoopMetricsStarted) DefaultMetricsSystem.shutdown(); self = null; } }
@Override public void close() { context.close(); reporter.close(); logger.logActionWithMarker(entity, timer.getMarker(), Operation.FINISHED); logger.report(mt -> mt.equals(timer)); identifier.close(); } }