class SshMultiplexedSession
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Credential |
credential |
private SshLocation |
gatewayLocation |
private SshSession |
gatewaySession |
private com.jcraft.jsch.JSch |
jsch |
private SshLocation |
location |
private static org.slf4j.Logger |
LOGGER |
private int |
nextSessionID |
private XenonProperties |
properties |
private java.util.List<SshSession> |
sessions |
private boolean |
useAgentForwarding |
Modifier | Constructor and Description |
---|---|
protected |
SshMultiplexedSession() |
(package private) |
SshMultiplexedSession(SshAdaptor adaptor,
com.jcraft.jsch.JSch jsch,
SshLocation loc,
Credential cred,
XenonProperties prop) |
Modifier and Type | Method and Description |
---|---|
private static byte[] |
convertPassword(char[] password) |
private SshSession |
createSession() |
private static SshSession |
createSession(com.jcraft.jsch.JSch jsch,
int sessionID,
SshLocation location,
Credential credential,
SshSession gateway,
SshLocation gatewayLocation,
XenonProperties properties) |
protected void |
disconnect() |
protected void |
failedExecChannel(com.jcraft.jsch.ChannelExec channel) |
protected void |
failedSftpChannel(com.jcraft.jsch.ChannelSftp channel) |
private SshSession |
findSession(com.jcraft.jsch.Channel c) |
private SshSession |
findSession(com.jcraft.jsch.Session s) |
protected com.jcraft.jsch.ChannelExec |
getExecChannel()
Get a new exec channel.
|
protected com.jcraft.jsch.ChannelSftp |
getSftpChannel()
Get a connected channel for doing sftp operations.
|
protected void |
releaseExecChannel(com.jcraft.jsch.ChannelExec channel) |
protected void |
releaseSftpChannel(com.jcraft.jsch.ChannelSftp channel) |
protected boolean |
useAgentForwarding()
Returns if agent forwarding should be used.
|
private static final org.slf4j.Logger LOGGER
private final com.jcraft.jsch.JSch jsch
private final XenonProperties properties
private final boolean useAgentForwarding
private Credential credential
private SshLocation location
private SshLocation gatewayLocation
private SshSession gatewaySession
private int nextSessionID
private final java.util.List<SshSession> sessions
protected SshMultiplexedSession()
SshMultiplexedSession(SshAdaptor adaptor, com.jcraft.jsch.JSch jsch, SshLocation loc, Credential cred, XenonProperties prop) throws XenonException
XenonException
private SshSession findSession(com.jcraft.jsch.Channel c) throws XenonException
XenonException
private SshSession findSession(com.jcraft.jsch.Session s) throws XenonException
XenonException
private SshSession createSession() throws XenonException
XenonException
private static byte[] convertPassword(char[] password)
private static SshSession createSession(com.jcraft.jsch.JSch jsch, int sessionID, SshLocation location, Credential credential, SshSession gateway, SshLocation gatewayLocation, XenonProperties properties) throws XenonException
XenonException
protected boolean useAgentForwarding()
protected com.jcraft.jsch.ChannelExec getExecChannel() throws XenonException
XenonException
protected void releaseExecChannel(com.jcraft.jsch.ChannelExec channel) throws XenonException
XenonException
protected void failedExecChannel(com.jcraft.jsch.ChannelExec channel) throws XenonException
XenonException
protected com.jcraft.jsch.ChannelSftp getSftpChannel() throws XenonException
XenonException
protected void releaseSftpChannel(com.jcraft.jsch.ChannelSftp channel) throws XenonException
XenonException
protected void failedSftpChannel(com.jcraft.jsch.ChannelSftp channel) throws XenonException
XenonException
protected void disconnect()