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:
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
clientSupplierFields 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.protectedAbstractShellTask(AbstractSessionTask.AbstractSessionTaskBuilder<?, T, ?> builder) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbeforeStartShell(T session) protected final voidsetupSession(T session) Methods inherited from class com.sshtools.client.tasks.AbstractSessionTask
changeTerminalDimensions, close, closeOnTaskComplete, createSession, disconnect, doTask, getChannelFuture, getSession, isClosed, onCloseSession, onOpenSessionMethods inherited from class com.sshtools.client.tasks.Task
ofRunnableMethods inherited from class com.sshtools.common.ssh.ConnectionAwareTask
getLastError, runMethods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, done, isDone, isSuccess, waitFor, waitForeverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.ssh.RequestFuture
isDoneAndSuccess
-
Constructor Details
-
AbstractShellTask
-
AbstractShellTask
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:
setupSessionin classAbstractSessionTask<T extends AbstractSessionChannel>
-
beforeStartShell
-