public void destroy() { thread_pool.shutdown(); super.destroy(); }
public void destroy() { for(Tuple<Rule,Future<?>> tuple: rules.values()) tuple.getVal2().cancel(true); rules.clear(); super.destroy(); }
@Override public void destroy() { super.destroy(); if (delayed_message_handler != null) Util.interruptAndWaitToDie(delayed_message_handler); }
@Override public void destroy() { super.destroy(); cleanup(); }
public void destroy() { super.destroy(); stopBatcher(); }
public void destroy() { super.destroy(); stopTask(); }
public void destroy() { super.destroy(); openBarrier(); }
public void destroy() { if(auth_token != null) auth_token.destroy(); super.destroy(); }
public void destroy() { super.destroy(); if(logical_addr_cache_reaper != null) { logical_addr_cache_reaper.cancel(false); logical_addr_cache_reaper=null; } if(time_service != null) time_service.stop(); // Stop the thread pool if(thread_pool instanceof ExecutorService) shutdownThreadPool(thread_pool); if(internal_pool instanceof ExecutorService) shutdownThreadPool(internal_pool); if(timer != null) timer.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(); }
public void destroy() { prot.destroy(); } }
public void destroy() { thread_pool.shutdown(); super.destroy(); }
public void destroy() { for(Tuple<Rule,Future<?>> tuple: rules.values()) tuple.getVal2().cancel(true); rules.clear(); super.destroy(); }
public static void destroyProtocolStack(Protocol start_prot) { while(start_prot != null) { start_prot.destroy(); start_prot=start_prot.getDownProtocol(); } }
public void destroy() { super.destroy(); openBarrier(); }
public void destroy() { super.destroy(); openBarrier(); }
@Override public void destroy() { super.destroy(); if (delayed_message_handler != null) Util.interruptAndWaitToDie(delayed_message_handler); }
public void destroy() { if(auth_token != null) auth_token.destroy(); super.destroy(); }
@Override public void destroy() { super.destroy(); cleanup(); }