/** * Kill the process when the channel is severed. */ @Override public synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(); try { pt.killAll(proc,cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
public void terminate(IOException e) { Channel.this.terminate(e); } });
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); proc.destroy(); // the stderr copier should exit by itself }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); proc.destroy(); // the stderr copier should exit by itself }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); proc.destroy(); // the stderr copier should exit by itself }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); proc.destroy(); // the stderr copier should exit by itself }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); try { proc.kill(); } catch (IOException x) { // we are already in the error recovery mode, so just record it and move on LOGGER.log(Level.INFO, "Failed to terminate the severed connection", x); } catch (InterruptedException x) { // process the interrupt later Thread.currentThread().interrupt(); } }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); try { proc.kill(); } catch (IOException x) { // we are already in the error recovery mode, so just record it and move on LOGGER.log(Level.INFO, "Failed to terminate the severed connection",x); } catch (InterruptedException x) { // process the interrupt later Thread.currentThread().interrupt(); } }
protected void execute(Channel channel) { try { channel.close(); channel.terminate(new OrderlyShutdown(createdAt)); } catch (IOException e) { logger.log(Level.SEVERE,"close command failed on "+channel.name,e); logger.log(Level.INFO,"close command created at",createdAt); } }
/** * {@inheritDoc} */ @Override public void onReadClosed(IOException cause) throws IOException { if (futureChannel.isDone()) { if (channel != null) { channel.terminate(cause == null ? new ClosedChannelException() : cause); } } else { futureChannel.setException(cause == null ? new ClosedChannelException() : cause); } }
public ReaderThread(CommandReceiver receiver) { super("Channel reader thread: "+channel.getName()); this.receiver = receiver; setUncaughtExceptionHandler((t, e) -> { LOGGER.log(Level.SEVERE, "Uncaught exception in SynchronousCommandTransport.ReaderThread " + t, e); channel.terminate(new IOException("Unexpected reader termination", e)); }); }
protected void execute(Channel channel) { try { channel.close(); channel.terminate(new OrderlyShutdown(createdAt)); } catch (IOException e) { logger.log(Level.SEVERE, "close command failed on " + channel.name, e); logger.log(Level.INFO, "close command created at", createdAt); } }
protected void execute(Channel channel) { try { channel.close(); channel.terminate(new OrderlyShutdown(createdAt)); } catch (IOException e) { logger.log(Level.SEVERE, "close command failed on " + channel.name, e); logger.log(Level.INFO, "close command created at", createdAt); } }
protected void execute(Channel channel) { try { channel.close(); channel.terminate(new OrderlyShutdown(createdAt)); } catch (IOException e) { logger.log(Level.SEVERE, "close command failed on " + channel.name, e); logger.log(Level.INFO, "close command created at", createdAt); } }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(); try { pt.killAll(proc,cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
/** * Kill the process when the channel is severed. */ @Override public synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(); try { pt.killAll(proc,cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(nativeUtils); try { pt.killAll(proc,cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(nativeUtils); try { pt.killAll(proc, cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
/** * Kill the process when the channel is severed. */ @Override protected synchronized void terminate(IOException e) { super.terminate(e); ProcessTree pt = ProcessTree.get(); try { pt.killAll(proc,cookie); } catch (InterruptedException x) { LOGGER.log(Level.INFO, "Interrupted", x); } }
@Override public void run() { // if this EOF is unexpected, report an error. if (!t.getChannel().isInClosed()) { t.getChannel().terminate(new IOException("Unexpected EOF while receiving the data from the channel. " + "FIFO buffer has been already closed", t.rb.getCloseCause())); } } });