Class ShellTask

All Implemented Interfaces:
RequestFuture, Closeable, AutoCloseable, Runnable

public class ShellTask extends AbstractShellTask<SessionChannelNG>
A Task that starts a remote shell with an allocated PTY. You cannot directly create a ShellTask, instead use ShellTask.ShellTaskBuilder.
 client.addTask(ShellTaskBuilder.create().
      withTermType("vt320").
      withColumns(132).
      withRows(48).
      onClose((task, session) -> System.out.println("Closed!")).
      build());