public abstract class AsyncSessionTask
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con) |
AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con,
com.sshtools.common.ssh.ChannelRequestFuture future) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disconnect() |
protected int |
getBufferSize() |
com.sshtools.common.ssh.ChannelRequestFuture |
getChannelFuture() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
protected boolean |
isAllocatePseudoTerminal() |
protected abstract void |
onCloseSession(com.sshtools.common.ssh.SessionChannel session) |
protected abstract void |
onOpenSession(com.sshtools.common.ssh.SessionChannel session) |
void |
run() |
protected abstract void |
setupSession(com.sshtools.common.ssh.SessionChannel session) |
public AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con, com.sshtools.common.ssh.ChannelRequestFuture future)
public AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con)
protected boolean isAllocatePseudoTerminal()
public void disconnect()
public com.sshtools.common.ssh.ChannelRequestFuture getChannelFuture()
public void run()
run
in interface java.lang.Runnable
protected int getBufferSize()
public java.io.OutputStream getOutputStream()
public java.io.InputStream getInputStream()
protected abstract void setupSession(com.sshtools.common.ssh.SessionChannel session)
protected abstract void onOpenSession(com.sshtools.common.ssh.SessionChannel session)
protected abstract void onCloseSession(com.sshtools.common.ssh.SessionChannel session)
public void close()
Copyright © 2023. All rights reserved.