| java.lang.Object | |
| ↳ | org.mule.modules.ssh.multiplexer.SshConnector |
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. | ||||||||||
| callbackStream | |||||||||||
| client | SSH Client class | ||||||||||
| logger | |||||||||||
| muleContext | |||||||||||
| receiverBufferSize | The size of the receiver buffer in bytes. | ||||||||||
| session | the SSH session | ||||||||||
| shell | |||||||||||
| 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 | ||||||||||
| username | The username of the active user | ||||||||||
| writerStream | The stream from wich we write | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Starts a connection
| |||||||||||
Releases the connection
| |||||||||||
Returns true if the connection is active
| |||||||||||
Sends the provided content to the SSH host.
| |||||||||||
| 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.
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
The username of the active user
The stream from wich we write
Starts a connection
| username | The username for the login |
|---|---|
| password | The password for the login |
| host | The address for the target host |
| port | TCP port number in which the host is listening |
| ConnectionException | if an error occurs connecting |
|---|
Releases the connection
Returns true if the connection is active
Sends the provided content to the SSH host. When the response is received, a new mule message will be generated and will be sent to the configured callback flow. That message will carry the response on the payload and will also include an inbound property called SSH_CALLBACK_USER that specifies the name of the user for whom the resopnse was sent.
| content | The content to send |
|---|---|
| breakLine | If true, then a new line character is added at the end of the conent |
| IOException | is there was an error in the line |
|---|
| callbackFlowName |
|---|
| context |
|---|
| receiverBufferSize |
|---|
| shellMode |
|---|
| timeout |
|---|
sends the message to the responseFlow if not null
| response |
|---|