@Override public void close() throws IOException { container.onServerStop(); analyzer.stop(); connection.close(); }
/** * Stop the tracker. * <p> * <p> * This effectively closes the listening HTTP connection to terminate * the service, and interrupts the peer myPeerCollectorThread thread as well. * </p> */ public void stop() { this.stop = true; try { this.connection.close(); logger.info("BitTorrent tracker closed."); } catch (IOException ioe) { logger.error("Could not stop the tracker: {}!", ioe.getMessage()); } if (myPeerCollectorThread != null && myPeerCollectorThread.isAlive()) { myPeerCollectorThread.interrupt(); try { myPeerCollectorThread.join(); } catch (InterruptedException e) { // } logger.info("Peer collection terminated."); } }
public void stop() throws IOException { if (connection != null) connection.close(); }
/** * Closes the server. * * @throws IOException In case closing fails. */ public void stop() throws IOException { connection.close(); }
@Override protected void _stop() throws Exception { if (router instanceof AutoCloseable) { ((AutoCloseable) router).close(); } connection.close(); connection = null; }
/** * Stops proxy. * * @throws IOException In case closing connection fails. */ public void stop() throws IOException { LOGGER.debug("Stopping and closing connection."); connection.close(); } }
@Override protected void _stop() throws Exception { if (router instanceof AutoCloseable) { ((AutoCloseable) router).close(); } connection.close(); connection = null; }
public static void stop() { try { connection.close(); } catch (Throwable e) { SDFSLogger.getLog().error("unable to stop Web Management Server", e); } }
/** * Closes the HTTP server */ public void stop() { if (this.connection != null) { try { this.connection.close(); } catch (IOException e) { } } }
/** * Stops the server */ public void stop() { System.out.println("Shutting down server on port "+ServerLyzer.port); try { this.connection.close(); } catch (IOException ex) { Logger.getLogger(ServerLyzer.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { Logger.getLogger(ServerLyzer.class.getName()).log(Level.SEVERE, null, ex); } } }
public void stop() { try { connection.close(); server.stop(); }catch(Exception e) { e.printStackTrace(); } }
public void stop() { try { dispatchStage.close(); } catch (IOException ex) { log.error("exception closing dispatchStage", ex); } stopped = true; thMonitor.interrupt(); try { connection.close(); } catch (Exception ex) { log.error("exception closing simpleton connection", ex); } }
@Override public void stop() throws Exception { connection.close(); }
public void stop() throws Exception { connection.close(); }
public void stop() throws Exception { connection.close(); }
public void stop() throws IOException { if (connection == null || server == null) { throw new IllegalStateException("server has not been started"); } container.stop(); connection.close(); server.stop(); }
@Override public void close() throws IOException { container.onServerStop(); analyzer.stop(); connection.close(); }
@After public void cleanUp() throws IOException { if (connection != null) { connection.close(); } }
@Override public synchronized void stop() throws Exception { getLogger().info("Stopping the Simple server"); try { getConnection().close(); } catch (Exception e) { getLogger() .log( Level.FINE, "Exception while closing the server socket. Can probably be safely ignored.", e); } getContainer().stop(); }
@Before public void setUp() throws IOException { initMocks(this); if (connection != null) { connection.close(); } when(clientFactory.getSourceDocResourceClient(anyString(), anyString())) .thenReturn(sourceDocResourceClient); when(clientFactory.getAsyncProcessClient()).thenReturn( asyncProcessClient); when(clientFactory.getCopyTransClient()).thenReturn(copyTransClient); }