| java.lang.Object | |
| ↳ | org.mule.modules.ssh.multiplexer.SshConnectionManager |
Important component to handle the connections abstracting the connector from that. It lazyly inits the connections on demmand and keeps a reusable instance of {@org.mule.modules.ssh.multiplexer.SshClient } to represent the fact that a user can keep the session open for a while.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| clients | map to relate a username to a SshClient
holding his session
|
||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a connection associated with the username specified in the details
If the connection already exist it's reused.
| |||||||||||
if an active connection associated with the username exists
it will be released after calling this method
| |||||||||||
Releases all active connections form all users
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Gets a connection associated with the username specified in the details If the connection already exist it's reused. Otherwise a new one is created. In case of needing a brand new connection opened, then org.mule.modules.ssh.multiplexer.SshConnectionManager.openConnection(SshConnectionDetails) is used and the connection obtained tracked
| details | - connection information |
|---|
| CommunicationException |
|---|
if an active connection associated with the username exists it will be released after calling this method
| username | - the username whose connection we want to free |
|---|
Releases all active connections form all users