public void stop() { super.stop(); running=false; }
public void stop() { super.stop(); running=false; }
public void stop() { running=false; super.stop(); }
public void stop() { running=false; super.stop(); }
public void stop() { super.stop(); waiting_for_state_response=false; }
public void stop() { super.stop(); }
public void stop() { super.stop(); if(discard_dialog != null) discard_dialog.dispose(); }
public void stop() { if(auth_token != null) auth_token.stop(); super.stop(); }
public void stop() { super.stop(); fwd_queue.stop(); coord=null; }
public void stop() { stopResendTask(); ids.values().forEach(Entry::destroy); ids.clear(); super.stop(); }
@Override public void stop() { super.stop(); cleanup(); }
public void stop() { super.stop(); stopPingerTask(); suspected_mbrs.clear(); has_suspected_mbrs=false; }
public void stop() { super.stop(); openBarrier(); }
public void stop() { super.stop(); stopTask(); }
public void stop() { running=false; unblockAll(); stopFlusher(); super.stop(); }
public void stop() { super.stop(); is_coord=false; stopViewConsistencyChecker(); stopInfoSender(); }
public void stop() { super.stop(); is_site_master=false; log.trace(local_addr + ": ceased to be site master; closing bridges"); if(relayer != null) relayer.stop(); }
public void stop() { if(log.isDebugEnabled()) log.debug("closing server socket " + srv_sock.getLocalSocketAddress()); if(acceptor != null && acceptor.isAlive()) { try { // this will terminate thread, peer will receive SocketException (socket close) getSocketFactory().close(srv_sock); } catch(Exception ex) { } } synchronized(connections) { connections.forEach(Connection::stop); connections.clear(); } acceptor=null; super.stop(); }
public <T extends Protocol> T removeProtocol(T prot) { if(prot == null) return null; Protocol above=prot.getUpProtocol(), below=prot.getDownProtocol(); checkAndSwitchTop(prot, below); if(above != null) above.setDownProtocol(below); if(below != null) below.setUpProtocol(above); prot.setUpProtocol(null); prot.setDownProtocol(null); try { prot.stop(); } catch(Throwable t) { log.error(Util.getMessage("FailedStopping") + prot.getName() + ": " + t); } try { prot.destroy(); } catch(Throwable t) { log.error(Util.getMessage("FailedDestroying") + prot.getName() + ": " + t); } return prot; }
/** * Replaces one protocol instance with another. Should be done before the stack is connected * @param existing_prot * @param new_prot */ public void replaceProtocol(Protocol existing_prot, Protocol new_prot) throws Exception { Protocol up_neighbor=existing_prot.getUpProtocol(), down_neighbor=existing_prot.getDownProtocol(); new_prot.setUpProtocol(existing_prot.getUpProtocol()); new_prot.setDownProtocol(existing_prot.getDownProtocol()); up_neighbor.setDownProtocol(new_prot); if(down_neighbor != null) down_neighbor.setUpProtocol(new_prot); existing_prot.setDownProtocol(null); existing_prot.setUpProtocol(null); existing_prot.stop(); existing_prot.destroy(); if(new_prot.getUpProtocol() == this) top_prot=new_prot; callAfterCreationHook(new_prot, afterCreationHook()); new_prot.init(); }