public abstract class AbstractSessionTask extends Object implements Runnable
Constructor and Description |
---|
AbstractSessionTask(Connection<SshClientContext> con) |
AbstractSessionTask(Connection<SshClientContext> con,
ChannelRequestFuture future) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
disconnect() |
protected int |
getBufferSize() |
ChannelRequestFuture |
getChannelFuture() |
InputStream |
getErrorStream() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
protected boolean |
isAllocatePseudoTerminal() |
protected abstract void |
onCloseSession(SessionChannel session) |
protected abstract void |
onOpenSession(SessionChannel session) |
void |
run() |
protected abstract void |
setupSession(SessionChannel session) |
public AbstractSessionTask(Connection<SshClientContext> con, ChannelRequestFuture future)
public AbstractSessionTask(Connection<SshClientContext> con)
protected boolean isAllocatePseudoTerminal()
public void disconnect()
public ChannelRequestFuture getChannelFuture()
protected int getBufferSize()
public OutputStream getOutputStream()
public InputStream getInputStream()
public InputStream getErrorStream()
protected abstract void setupSession(SessionChannel session)
protected abstract void onOpenSession(SessionChannel session)
protected abstract void onCloseSession(SessionChannel session)
public void close()
Copyright © 2017. All rights reserved.