/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutting down reader."); this.running = false; }
/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutdown of DBReader requested."); this.running = false; }
/** * {@inheritDoc} */ @Override public void contextInitialized(final ServletContextEvent evt) { LOG.info("context initialized"); } }
/** * {@inheritDoc} */ @Override public final boolean disableMonitoring() { LOG.info("Disabling monitoring"); this.monitoringEnabled = false; return true; }
/** * Clear list of disabled throwables. */ public static final void reset() { synchronized (DISABLED_THROWABLES) { if (!DISABLED_THROWABLES.isEmpty()) { DISABLED_THROWABLES.clear(); LOG.info("Logging all messaged to default log level."); } } }
@Override public void onStarting() { LOG.info(this.getClass().getName() + " has been started."); }
@Override public void onTerminating() { if ((this.printStream != System.out) && (this.printStream != System.err)) { this.printStream.close(); } LOG.info(this.getClass().getName() + " shutting down."); } }
@Override public void onTerminating() { LOG.info(this.getClass().getName() + " has shut down."); } }
/** * Add a throwable to the list of throwables to be ignored for normal logging. * * @param clazz * throwable class */ public static final void disableThrowable(final Class<? extends Throwable> clazz) { synchronized (DISABLED_THROWABLES) { DISABLED_THROWABLES.add(clazz); } LOG.info("Logging " + clazz.getName() + " only to DEBUG log level."); }
@Override public void handleEvent(final long count, final String message) { CLIServerMain.getLog().info("Received " + count + " records"); } });
/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutting down reader."); for (final AbstractLogReaderThread readerThread : this.readerThreads) { readerThread.terminate(); } }
/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutting down reader."); for (final AbstractLogReaderThread readerThread : this.readerThreads) { readerThread.terminate(); } }
@Override public void terminate(final boolean error) { this.log.info("Shutdown of TCPReader requested."); this.terminated = true; this.readerThread.interrupt(); this.tcpStringReader.terminate(); }
/** * {@inheritDoc} */ @Override public void contextDestroyed(final ServletContextEvent evt) { this.ctrl.terminateMonitoring(); LOG.info("context destroyed"); }
/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutdown of JmxReader requested."); this.unblock(); }
/** * print buffer. */ public void printBuffer() { LOG.info(this.toString()); } }
/** * {@inheritDoc} */ @Override public void terminate(final boolean error) { this.log.info("Shutdown of JmsReader requested."); this.unblock(); }
@Override public final boolean terminateMonitoring() { LOG.info("Terminating monitoring..."); return this.stateController.terminateMonitoring(); }
@Override public void terminate(final boolean error) { this.log.info("Shutdown requested."); this.tcpMonitoringRecordReader.terminate(); this.tcpStringRecordReader.terminate(); this.tcpStringRecordReaderThread.interrupt(); }
@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(); }