public abstract class AbstractSubsystemTask
extends com.sshtools.common.ssh.ConnectionAwareTask
Modifier and Type | Field and Description |
---|---|
protected long |
timeout |
Constructor and Description |
---|
AbstractSubsystemTask(com.sshtools.common.ssh.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(com.sshtools.common.ssh.Packet msg) |
public AbstractSubsystemTask(com.sshtools.common.ssh.SshConnection con)
protected void doTask()
doTask
in class com.sshtools.common.ssh.ConnectionAwareTask
protected SessionChannelNG createSession() throws com.sshtools.common.ssh.SshException
com.sshtools.common.ssh.SshException
protected abstract int getMinimumWindowSize()
protected abstract int getMaximumWindowSize()
protected abstract int getMaximumPacketSize()
protected SessionChannelNG getSession()
public byte[] nextMessage() throws com.sshtools.common.ssh.SshException
com.sshtools.common.ssh.SshException
protected void onCloseSession(SessionChannelNG session)
protected abstract void doSubsystemTask(SessionChannelNG session) throws com.sshtools.common.ssh.SshException
com.sshtools.common.ssh.SshException
public void sendMessage(com.sshtools.common.ssh.Packet msg) throws com.sshtools.common.ssh.SshException
com.sshtools.common.ssh.SshException
Copyright © 2021. All rights reserved.