@Override public void stop() { super.stop(); buffer.clear(); }
@Override public void stop() { LOGGER.info("Stopping {}.", this); // stop LogEvents from coming to this appender super.stop(); // unregister as provider cleanUp(true); LOGGER.info("{} has stopped.", this); }
@Override public void stop() { LOGGER.info("Stopping {}.", this); // stop LogEvents from coming to this appender super.stop(); // clean up loggingSessionListeners.removeLoggingLifecycleListener(this); stopSession(); LOGGER.info("{} has stopped.", this); }
@Override public void stop() { if (!(this.isStopping() || this.isStopped())) { super.stop(); if (appenderControl.get() != null) { appenderControl.get().stop();
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); super.stop(timeout, timeUnit, false); try { Thread.sleep(shutdownDelay); } catch (final InterruptedException ignore) { // ignore } setStopped(); return true; } }
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); super.stop(timeout, timeUnit, false); setStopped(); return true; } }
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); super.stop(timeout, timeUnit, false); running = false; setStopped(); return true; }
/** * When system exit,this method will be called to close resources */ public boolean stop(long timeout, TimeUnit timeUnit) { this.setStopping(); try { ProducerInstance.getProducerInstance().removeAndClose(this.nameServerAddress, this.producerGroup); } catch (Exception e) { ErrorHandler handler = this.getHandler(); if (handler != null) { handler.error("Closeing RocketmqLog4j2Appender [" + this.getName() + "] nameServerAddress:" + nameServerAddress + " group:" + producerGroup + " " + e.getMessage()); } } boolean stopped = super.stop(timeout, timeUnit, false); this.setStopped(); return stopped; }
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); super.stop(timeout, timeUnit, false); thread.start(); try { thread.join(); } catch (final Exception ex) { System.out.println("Thread interrupted"); } setStopped(); return true; }
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); super.stop(timeout, timeUnit, false); final Layout<? extends Serializable> layout = getLayout(); if (layout != null) { final byte[] bytes = layout.getFooter(); if (bytes != null) { write(bytes); } } setStopped(); return true; }
/** * When system exit,this method will be called to close resources */ public boolean stop(long timeout, TimeUnit timeUnit) { this.setStopping(); try { ProducerInstance.getProducerInstance().removeAndClose(this.nameServerAddress, this.producerGroup); } catch (Exception e) { ErrorHandler handler = this.getHandler(); if (handler != null) { handler.error("Closeing RocketmqLog4j2Appender [" + this.getName() + "] nameServerAddress:" + nameServerAddress + " group:" + producerGroup + " " + e.getMessage()); } } boolean stopped = super.stop(timeout, timeUnit, false); this.setStopped(); return stopped; }
@Override public void stop() { super.stop(); try { writer.close(); this.logs = writer.toString(); } catch (IOException e) { throw new UncheckedIOException(e); } }
@Override protected boolean stop(long timeout, TimeUnit timeUnit, boolean changeLifeCycleState) { boolean stopped = super.stop(timeout, timeUnit, changeLifeCycleState); return stopped || this.manager.stop(timeout, timeUnit); }
@Override protected boolean stop(long timeout, TimeUnit timeUnit, boolean changeLifeCycleState) { boolean stopped = super.stop(timeout, timeUnit, changeLifeCycleState); return stopped || this.manager.stop(timeout, timeUnit); }
@Override public void stop() { super.stop(); buffer.clear(); }
@Override public void stop() { if (null != gelfSender) { Closer.close(gelfSender); gelfSender = null; } super.stop(); }
@Override public void stop() { itemAppender.stop(); super.stop(); }
@Override public void stop() { super.stop(); logEvents.clear(); }
@Override public void stop() { if (this.writer != null) { try { this.writer.close(); } catch (IOException e) { LOGGER.error("Appender " + getName() + " " + e.getMessage()); } } super.stop(); }
@Override public boolean stop(final long timeout, final TimeUnit timeUnit) { setStopping(); boolean stopped = super.stop(timeout, timeUnit, false); if (this.getManager() != null) { stopped &= this.getManager().stop(timeout, timeUnit); } setStopped(); return stopped; }