class SshSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
private static int |
MAX_OPEN_CHANNELS |
private int |
openChannels |
private com.jcraft.jsch.Session |
session |
private int |
sessionID |
private com.jcraft.jsch.ChannelSftp |
sftpChannelCache |
private int |
tunnelPort |
Constructor and Description |
---|
SshSession(com.jcraft.jsch.Session session,
int tunnelPort,
int sessionID) |
Modifier and Type | Method and Description |
---|---|
protected int |
addTunnel(int localPort,
java.lang.String targetHost,
int targetPort) |
protected void |
decOpenChannels(java.lang.String info) |
protected void |
disconnect() |
protected void |
failedExecChannel(com.jcraft.jsch.ChannelExec channel) |
protected void |
failedSftpChannel(com.jcraft.jsch.ChannelSftp channel) |
protected com.jcraft.jsch.ChannelExec |
getExecChannel() |
protected com.jcraft.jsch.Session |
getSession() |
protected int |
getSessionID() |
protected com.jcraft.jsch.ChannelSftp |
getSftpChannel() |
protected com.jcraft.jsch.ChannelSftp |
getSftpChannelFromCache()
Cached channel from putSftpChannelInCache() is returned and removed from cache.
|
protected int |
getTunnelPort() |
protected boolean |
incOpenChannels(java.lang.String info) |
protected boolean |
putSftpChannelInCache(com.jcraft.jsch.ChannelSftp channel)
Caches one channel.
|
protected void |
releaseExecChannel(com.jcraft.jsch.ChannelExec channel) |
protected void |
releaseSftpChannel(com.jcraft.jsch.ChannelSftp channel) |
protected void |
removeTunnel(int localPort) |
private static final org.slf4j.Logger LOGGER
private static final int MAX_OPEN_CHANNELS
private final com.jcraft.jsch.Session session
private final int tunnelPort
private final int sessionID
private com.jcraft.jsch.ChannelSftp sftpChannelCache
private int openChannels
SshSession(com.jcraft.jsch.Session session, int tunnelPort, int sessionID)
protected com.jcraft.jsch.Session getSession()
protected int getTunnelPort()
protected int getSessionID()
protected boolean incOpenChannels(java.lang.String info)
protected void decOpenChannels(java.lang.String info)
protected com.jcraft.jsch.ChannelSftp getSftpChannelFromCache()
protected boolean putSftpChannelInCache(com.jcraft.jsch.ChannelSftp channel)
channel
- channel to cacheprotected void releaseExecChannel(com.jcraft.jsch.ChannelExec channel)
protected void failedExecChannel(com.jcraft.jsch.ChannelExec channel)
protected void releaseSftpChannel(com.jcraft.jsch.ChannelSftp channel)
protected void failedSftpChannel(com.jcraft.jsch.ChannelSftp channel)
protected void disconnect()
protected com.jcraft.jsch.ChannelExec getExecChannel() throws XenonException
XenonException
protected com.jcraft.jsch.ChannelSftp getSftpChannel() throws XenonException
XenonException
protected int addTunnel(int localPort, java.lang.String targetHost, int targetPort) throws XenonException
XenonException
protected void removeTunnel(int localPort) throws XenonException
XenonException