Package com.sshtools.client.tasks
Class AbstractShellTask<T extends AbstractSessionChannel>
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
com.sshtools.client.tasks.Task
com.sshtools.client.tasks.AbstractConnectionTask
com.sshtools.client.tasks.AbstractSessionTask<T>
com.sshtools.client.tasks.AbstractShellTask<T>
- All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture
,Closeable
,AutoCloseable
,Runnable
- Direct Known Subclasses:
ShellTask
public abstract class AbstractShellTask<T extends AbstractSessionChannel>
extends AbstractSessionTask<T>
An abstract task for starting the shell.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sshtools.client.tasks.AbstractSessionTask
AbstractSessionTask.AbstractSessionTaskBuilder<B extends AbstractSessionTask.AbstractSessionTaskBuilder<B,
SC, TT>, SC extends AbstractSessionChannel, TT extends AbstractSessionTask<SC>> Nested classes/interfaces inherited from class com.sshtools.client.tasks.AbstractConnectionTask
AbstractConnectionTask.AbstractConnectionTaskBuilder<B extends AbstractConnectionTask.AbstractConnectionTaskBuilder<B,
T>, T extends AbstractConnectionTask> Nested classes/interfaces inherited from class com.sshtools.client.tasks.Task
Task.TaskRunnable<T>
-
Field Summary
Fields inherited from class com.sshtools.client.tasks.AbstractConnectionTask
clientSupplier
Fields inherited from class com.sshtools.common.ssh.ConnectionAwareTask
con, lastError
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.protected
AbstractShellTask
(AbstractSessionTask.AbstractSessionTaskBuilder<?, T, ?> builder) AbstractShellTask
(com.sshtools.common.ssh.SshConnection con) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
beforeStartShell
(T session) protected final void
setupSession
(T session) Methods inherited from class com.sshtools.client.tasks.AbstractSessionTask
changeTerminalDimensions, close, closeOnTaskComplete, createSession, disconnect, doTask, getChannelFuture, getSession, isClosed, onCloseSession, onOpenSession
Methods inherited from class com.sshtools.client.tasks.Task
ofRunnable
Methods inherited from class com.sshtools.common.ssh.ConnectionAwareTask
getLastError, run
Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.common.ssh.RequestFuture
isDoneAndSuccess
-
Constructor Details
-
AbstractShellTask
-
AbstractShellTask
@Deprecated(since="3.1.0", forRemoval=true) public AbstractShellTask(com.sshtools.common.ssh.SshConnection con) Deprecated, for removal: This API element is subject to removal in a future version. -
AbstractShellTask
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setupSession
- Specified by:
setupSession
in classAbstractSessionTask<T extends AbstractSessionChannel>
-
beforeStartShell
-