| java.lang.Object | |
| ↳ | org.mule.modules.ssh.multiplexer.SshMultiplexedConnector |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Cloud Connector for ssh that is capable to handle multiple session from different users and reusing the session of any given user if he wants to send multiple messages. Notice that while this connector can handle N sessions for N users, each user can only have 1 active session at a time
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | SSH_CALLBACK_USER | ||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| callbackFlow | The flow that will receive callback invocations | ||||||||||
| callbackFlowName | If not null, a flow with this name will be fetched from the registry and invoked everytime data is received from the other end. | ||||||||||
| connectionManager | Instance of SshConnectionManager
to delegate the connection handling |
||||||||||
| host | IP address for the target host | ||||||||||
| logger | |||||||||||
| muleContext | |||||||||||
| port | TCP port in which the host is listening | ||||||||||
| receiverBufferSize | The size of the receiver buffer in bytes. | ||||||||||
| shellMode | if true, the connection will be opened in shell mode, meaning that the session context will be maintained from the moment it's stablished until it's closed. | ||||||||||
| timeout | message timeout | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Instanciates the connectionManager.
| |||||||||||
Releases all the active ssh connections
and deallocates
org.mule.modules.ssh.multiplexer.SshMultiplexedConnector.connectionManager
| |||||||||||
Releases the ssh connection associated with the username (if any).
| |||||||||||
creates/reuses a ssh connection to the host login in as username.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
sends the message to the responseFlow if not null
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.mule.api.context.MuleContextAware
| |||||||||||
The flow that will receive callback invocations
If not null, a flow with this name will be fetched from the registry and invoked everytime data is received from the other end. Keep in mind that SSH is a full duplex protocol, meaning that you can receive data at any time, not just as a reply to a message you have sent.
Instance of SshConnectionManager
to delegate the connection handling
TCP port in which the host is listening
The size of the receiver buffer in bytes. Defaults to 8192 and must be greater or equal to 1
if true, the connection will be opened in shell mode, meaning that the session context will be maintained from the moment it's stablished until it's closed. If false, then only single commands will be allowed and no context will be passed from one invocation to the next.
message timeout
Instanciates the connectionManager. Actual ssh connections are lazily created by org.mule.modules.ssh.multiplexer.SshMultiplexedConnector.connectionManager
| ConnectionException |
|---|
Releases all the active ssh connections and deallocates org.mule.modules.ssh.multiplexer.SshMultiplexedConnector.connectionManager
Releases the ssh connection associated with the username (if any). It does so by invoking org.mule.modules.ssh.multiplexer.SshConnectionManager.release(String)
| username | - the username whose connection we want to free |
|---|
creates/reuses a ssh connection to the host login in as username. Notice that after sending the message the session is kept active. It is up to you to release it. To release a session, the username can send {@org.mule.modules.ssh.multiplexer.SshMultiplexedConnector.DISCONNECT_STRING } as content. This will cause org.mule.modules.ssh.multiplexer.SshMultiplexedConnector.release(String) to be invoked
| username | - the username to use at remote authentication |
|---|---|
| password | - the password to use at remote authentication |
| content | - the content to send |
| breakLine | - if true, then |
| Exception |
|---|
| context |
|---|
| port |
|---|
| shellMode |
|---|
| timeout |
|---|
sends the message to the responseFlow if not null
| response | |
|---|---|
| username |