public void handleFinished(final Connection connection) throws IOException { SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); // nothing }
public void handleFinished(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); // nothing }
public void handleFinished(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); // nothing }
public void handleShutdown(final Connection connection) throws IOException { SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleShutdown(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleShutdown(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleFinished(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); connection.close(); } }
public void handleFailure(final Connection connection, final IOException e) throws IOException { SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleFailure(final Connection connection, final IOException e) throws IOException { ProcessLogger.SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleShutdown(final Connection connection) throws IOException { SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleFinished(final Connection connection) throws IOException { SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); connection.close(); } }
public void handleShutdown(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleFailure(final Connection connection, final IOException e) throws IOException { ProcessLogger.SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleShutdown(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Received end-of-stream for connection"); processController.removeManagedConnection(connection); connection.shutdownWrites(); }
public void handleFailure(final Connection connection, final IOException e) throws IOException { ProcessLogger.SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleFailure(final Connection connection, final IOException e) throws IOException { SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleFailure(final Connection connection, final IOException e) throws IOException { ProcessLogger.SERVER_LOGGER.tracef(e, "Received failure of connection"); processController.removeManagedConnection(connection); connection.close(); }
public void handleFinished(final Connection connection) throws IOException { ProcessLogger.SERVER_LOGGER.tracef("Connection finished"); processController.removeManagedConnection(connection); connection.close(); } }
void processStarted(final String processName) { synchronized (lock) { for (Connection connection : managedConnections) { try { final OutputStream os = connection.writeMessage(); try { os.write(Protocol.PROCESS_STARTED); StreamUtils.writeUTFZBytes(os, processName); os.close(); } finally { StreamUtils.safeClose(os); } } catch (IOException e) { ProcessLogger.ROOT_LOGGER.failedToWriteMessage("PROCESS_STARTED", e); removeManagedConnection(connection); } } } }
void processRemoved(final String processName) { synchronized (lock) { for (Connection connection : managedConnections) { try { final OutputStream os = connection.writeMessage(); try { os.write(Protocol.PROCESS_REMOVED); StreamUtils.writeUTFZBytes(os, processName); os.close(); } finally { StreamUtils.safeClose(os); } } catch (IOException e) { ProcessLogger.ROOT_LOGGER.failedToWriteMessage("PROCESS_REMOVED " + processName, e); removeManagedConnection(connection); } } } }