@Override public final boolean newMonitoringRecord(final IMonitoringRecord record) { final boolean recordSent = this.insertBehavior.insert(record); if (!recordSent) { LOGGER.error("Error writing the monitoring data. Will terminate monitoring!"); this.terminate(); } return recordSent; }
@Override public final boolean newMonitoringRecord(final IMonitoringRecord record) { final boolean recordSent = this.insertBehavior.insert(record); if (!recordSent) { LOG.error("Error writing the monitoring data. Will terminate monitoring!"); this.terminate(); } return recordSent; }
@Override protected final void cleanup() { LOGGER.info("Shutting down Monitoring Controller ({})", this.getName()); // this.saveMetadataAsRecord(); this.probeController.terminate(); this.timeSourceController.terminate(); this.writerController.terminate(); this.jmxController.terminate(); this.tcpController.terminate(); this.samplingController.terminate(); this.stateController.terminate(); }
@Override protected final void cleanup() { LOG.info("Shutting down Monitoring Controller (" + this.getName() + ")"); // this.saveMetadataAsRecord(); this.probeController.terminate(); this.timeSourceController.terminate(); this.writerController.terminate(); this.jmxController.terminate(); this.samplingController.terminate(); this.stateController.terminate(); }
configuration); if (this.monitoringWriter == null) { this.terminate(); return; // TODO should throw an exception! and then monitoringWriter can be declared
configuration); if (this.monitoringWriter == null) { this.terminate(); return; // TODO should throw an exception! and then monitoringWriter can be declared final