Package com.sshtools.client.tasks
Class AbstractSubsystemTask
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
com.sshtools.client.tasks.AbstractSubsystemTask
- All Implemented Interfaces:
RequestFuture,Runnable
An abstract task for connecting to an SSH subsystem.
-
Field Summary
FieldsFields inherited from class com.sshtools.common.ssh.ConnectionAwareTask
con, lastError -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SessionChannelNGprotected abstract voiddoSubsystemTask(SessionChannelNG session) protected voiddoTask()protected abstract intprotected abstract com.sshtools.common.util.UnsignedInteger32protected abstract com.sshtools.common.util.UnsignedInteger32protected SessionChannelNGbyte[]protected voidonCloseSession(SessionChannelNG session) voidsendMessage(Packet msg) Methods 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
-
Field Details
-
timeout
protected long timeout
-
-
Constructor Details
-
AbstractSubsystemTask
-
-
Method Details
-
doTask
protected void doTask()- Specified by:
doTaskin classConnectionAwareTask
-
createSession
- Throws:
SshException
-
getMinimumWindowSize
protected abstract com.sshtools.common.util.UnsignedInteger32 getMinimumWindowSize() -
getMaximumWindowSize
protected abstract com.sshtools.common.util.UnsignedInteger32 getMaximumWindowSize() -
getMaximumPacketSize
protected abstract int getMaximumPacketSize() -
getSession
-
nextMessage
- Throws:
SshException
-
onCloseSession
-
doSubsystemTask
- Throws:
SshException
-
sendMessage
- Throws:
SshException
-