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(Connection<SshClientContext> con, ChannelRequestFuture future) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidprotected intprotected booleanprotected abstract voidonCloseSession(SessionChannel session) protected abstract voidonOpenSession(SessionChannel session) voidrun()protected abstract voidsetupSession(SessionChannel session)
-
Constructor Details
-
AsyncSessionTask
-
AsyncSessionTask
-
-
Method Details
-
isAllocatePseudoTerminal
protected boolean isAllocatePseudoTerminal() -
disconnect
public void disconnect() -
getChannelFuture
-
run
public void run() -
getBufferSize
protected int getBufferSize() -
getOutputStream
-
getInputStream
-
setupSession
-
onOpenSession
-
onCloseSession
-
close
public void close()
-