public abstract class AbstractSubsystemTask extends ConnectionAwareTask
| Modifier and Type | Field and Description |
|---|---|
protected long |
timeout |
con| Constructor and Description |
|---|
AbstractSubsystemTask(SshConnection con) |
| Modifier and Type | Method and Description |
|---|---|
protected SessionChannelNG |
createSession() |
protected abstract void |
doSubsystemTask(SessionChannelNG session) |
protected void |
doTask() |
protected abstract int |
getMaximumPacketSize() |
protected abstract int |
getMaximumWindowSize() |
protected abstract int |
getMinimumWindowSize() |
protected SessionChannelNG |
getSession() |
byte[] |
nextMessage() |
protected void |
onCloseSession(SessionChannelNG session) |
void |
sendMessage(Packet msg) |
getLastError, runaddFutureListener, done, isDone, isSuccess, waitFor, waitForeverpublic AbstractSubsystemTask(SshConnection con)
protected void doTask()
doTask in class ConnectionAwareTaskprotected SessionChannelNG createSession() throws SshException
SshExceptionprotected abstract int getMinimumWindowSize()
protected abstract int getMaximumWindowSize()
protected abstract int getMaximumPacketSize()
protected SessionChannelNG getSession()
public byte[] nextMessage()
throws SshException
SshExceptionprotected void onCloseSession(SessionChannelNG session)
protected abstract void doSubsystemTask(SessionChannelNG session) throws SshException
SshExceptionpublic void sendMessage(Packet msg) throws SshException
SshExceptionCopyright © 2022. All rights reserved.