public abstract class AbstractSubsystemTask extends Object implements Runnable
Modifier and Type | Field and Description |
---|---|
protected Connection<SshClientContext> |
con |
protected long |
timeout |
Constructor and Description |
---|
AbstractSubsystemTask(Connection<SshClientContext> con) |
Modifier and Type | Method and Description |
---|---|
protected SessionChannel |
createSession() |
protected abstract void |
doSubsystemTask(SessionChannel session) |
protected SessionChannel |
getSession() |
byte[] |
nextMessage() |
protected void |
onCloseSession(SessionChannel session) |
void |
run() |
void |
sendMessage(Packet msg) |
protected Connection<SshClientContext> con
protected long timeout
public AbstractSubsystemTask(Connection<SshClientContext> con)
protected SessionChannel createSession() throws SshException
SshException
protected SessionChannel getSession()
public byte[] nextMessage() throws SshException
SshException
protected void onCloseSession(SessionChannel session)
protected abstract void doSubsystemTask(SessionChannel session) throws SshException
SshException
public void sendMessage(Packet msg) throws SshException
SshException
Copyright © 2016. All rights reserved.