/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) return; this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ synchronized public void close() { if(closed) return; LogLog.debug("closing SocketHubAppender " + getName()); this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); LogLog.debug("SocketHubAppender " + getName() + " closed"); }
/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) { return; } this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ synchronized public void close() { if(closed) { return; } LogLog.debug("closing SocketHubAppender " + getName()); this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); LogLog.debug("SocketHubAppender " + getName() + " closed"); }
/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) return; this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ public synchronized void close() { if (closed) { return; } this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ public synchronized void close() { if (closed) { return; } if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } this.closed = true; cleanUp(); }
/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) return; this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) return; this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ public synchronized void close() { if (closed) { return; } this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** * Close this appender. * * <p>This will mark the appender as closed and call then {@link * #cleanUp} method. * */ synchronized public void close() { if(closed) return; this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ public synchronized void close() { if (closed) { return; } if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } this.closed = true; cleanUp(); }
public synchronized void shutdown() { active = false; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } if (handlerThread != null) { handlerThread.interrupt(); } if (receiverThread != null) { receiverThread.interrupt(); } if (socket != null) { socket.close(); } }
public synchronized void shutdown() { active = false; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } if (handlerThread != null) { handlerThread.interrupt(); } if (receiverThread != null) { receiverThread.interrupt(); } if (socket != null) { socket.close(); } }
/** * Called when the receiver should be stopped. Closes the * server socket and all of the open sockets. */ public synchronized void shutdown() { getLogger().debug(getName() + " received shutdown request"); // mark this as no longer running active = false; if (rThread != null) { rThread.interrupt(); rThread = null; } if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } doShutdown(); }
/** * Does the actual shutting down by closing the server socket * and any connected sockets that have been created. */ private synchronized void doShutdown() { active = false; getLogger().debug("{} doShutdown called", getName()); // close the server socket closeServerSocket(); // close all of the accepted sockets closeAllAcceptedSockets(); if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } }
/** * Does the actual shutting down by closing the server socket * and any connected sockets that have been created. */ private synchronized void doShutdown() { active = false; getLogger().debug("{} doShutdown called", getName()); // close the server socket closeServerSocket(); // close all of the accepted sockets closeAllAcceptedSockets(); if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ synchronized public void close() { if(closed) return; LogLog.debug("closing SocketHubAppender " + getName()); this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); LogLog.debug("SocketHubAppender " + getName() + " closed"); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ synchronized public void close() { if(closed) return; LogLog.debug("closing SocketHubAppender " + getName()); this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); LogLog.debug("SocketHubAppender " + getName() + " closed"); }
/** Close this appender. <p>This will mark the appender as closed and call then {@link #cleanUp} method. */ synchronized public void close() { if(closed) return; LogLog.debug("closing SocketHubAppender " + getName()); this.closed = true; if (advertiseViaMulticastDNS) { zeroConf.unadvertise(); } cleanUp(); LogLog.debug("SocketHubAppender " + getName() + " closed"); }