@Override public ExecChannel create() throws Exception { session = SessionChannel.class.cast(acquire(noPTYConnection())); output = session.exec(command); return new ExecChannel(output.getOutputStream(), output.getInputStream(), output.getErrorStream(), new Supplier<Integer>() { @Override public Integer get() { return output.getExitStatus(); } }, new Closeable() { @Override public void close() throws IOException { clear(); } }); }
@Override public ExecChannel create() throws Exception { session = SessionChannel.class.cast(acquire(noPTYConnection())); output = session.exec(command); return new ExecChannel(output.getOutputStream(), output.getInputStream(), output.getErrorStream(), new Supplier<Integer>() { @Override public Integer get() { return output.getExitStatus(); } }, new Closeable() { @Override public void close() throws IOException { clear(); } }); }
@Override public ExecChannel create() throws Exception { session = SessionChannel.class.cast(acquire(noPTYConnection())); output = session.exec(command); return new ExecChannel(output.getOutputStream(), output.getInputStream(), output.getErrorStream(), new Supplier<Integer>() { @Override public Integer get() { return output.getExitStatus(); } }, new Closeable() { @Override public void close() throws IOException { clear(); } }); }
@Override public ExecChannel create() throws Exception { connection = noPTYConnection(); output = SessionChannel.class.cast(acquire(connection)).exec(command); return new ExecChannel(output.getOutputStream(), output.getInputStream(), output.getErrorStream(), new Supplier<Integer>() { @Override public Integer get() { return output.getExitStatus(); } }, new Closeable() { @Override public void close() throws IOException { clear(); } }); }
@Override public ExecChannel create() throws Exception { connection = noPTYConnection(); output = SessionChannel.class.cast(acquire(connection)).exec(command); return new ExecChannel(output.getOutputStream(), output.getInputStream(), output.getErrorStream(), new Supplier<Integer>() { @Override public Integer get() { return output.getExitStatus(); } }, new Closeable() { @Override public void close() throws IOException { clear(); } }); }