Package com.sshtools.client.tasks
Class AsyncSessionTask
java.lang.Object
com.sshtools.client.tasks.AsyncSessionTask
- All Implemented Interfaces:
Runnable
An task for using the SSH session asynchronously
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncSessionTask
(com.sshtools.synergy.ssh.Connection<SshClientContext> con) AsyncSessionTask
(com.sshtools.synergy.ssh.Connection<SshClientContext> con, com.sshtools.common.ssh.ChannelRequestFuture future) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
protected int
com.sshtools.common.ssh.ChannelRequestFuture
protected boolean
protected abstract void
onCloseSession
(com.sshtools.common.ssh.SessionChannel session) protected abstract void
onOpenSession
(com.sshtools.common.ssh.SessionChannel session) void
run()
protected abstract void
setupSession
(com.sshtools.common.ssh.SessionChannel session)
-
Constructor Details
-
AsyncSessionTask
public AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con, com.sshtools.common.ssh.ChannelRequestFuture future) -
AsyncSessionTask
-
-
Method Details
-
isAllocatePseudoTerminal
protected boolean isAllocatePseudoTerminal() -
disconnect
public void disconnect() -
getChannelFuture
public com.sshtools.common.ssh.ChannelRequestFuture getChannelFuture() -
run
public void run() -
getBufferSize
protected int getBufferSize() -
getOutputStream
-
getInputStream
-
setupSession
protected abstract void setupSession(com.sshtools.common.ssh.SessionChannel session) -
onOpenSession
protected abstract void onOpenSession(com.sshtools.common.ssh.SessionChannel session) -
onCloseSession
protected abstract void onCloseSession(com.sshtools.common.ssh.SessionChannel session) -
close
public void close()
-