public abstract class ShellTask extends AbstractShellTask<SessionChannelNG>
Constructor and Description |
---|
ShellTask(SshClient ssh) |
ShellTask(com.sshtools.common.ssh.SshConnection con) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeStartShell(SessionChannelNG session) |
protected SessionChannelNG |
createSession(com.sshtools.common.ssh.SshConnection con) |
protected void |
onCloseSession(SessionChannelNG session) |
setupSession
changeTerminalDimensions, close, disconnect, doTask, getChannelFuture, getLastError, getSession, isClosed, onOpenSession
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
public ShellTask(com.sshtools.common.ssh.SshConnection con)
public ShellTask(SshClient ssh)
protected void beforeStartShell(SessionChannelNG session)
beforeStartShell
in class AbstractShellTask<SessionChannelNG>
protected void onCloseSession(SessionChannelNG session)
onCloseSession
in class AbstractSessionTask<SessionChannelNG>
protected SessionChannelNG createSession(com.sshtools.common.ssh.SshConnection con)
createSession
in class AbstractSessionTask<SessionChannelNG>
Copyright © 2024. All rights reserved.