|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
interface Connection
A SSH connection.
| Method Summary | |
|---|---|
void
|
close()
Cleanup the connection and all channels. |
ChannelExec
|
createExecutionChannel(java.lang.String command, OperationSettings operationSettings)
Create an execution channel. |
ChannelSftp
|
createSftpChannel()
Create a SFTP channel. |
ChannelShell
|
createShellChannel(OperationSettings operationSettings)
Create a shell channel. |
void
|
executeCallbackForClosedChannels()
Execute registered closures. |
Remote
|
getRemote()
Return the remote host. |
boolean
|
isAnyPending()
Return if any channel is pending. |
void
|
whenClosed(Channel channel, groovy.lang.Closure closure)
Register a closure called when the channel is closed. |
| Method Detail |
|---|
void close()
ChannelExec createExecutionChannel(java.lang.String command, OperationSettings operationSettings)
ChannelSftp createSftpChannel()
ChannelShell createShellChannel(OperationSettings operationSettings)
void executeCallbackForClosedChannels()
Remote getRemote()
boolean isAnyPending()
void whenClosed(Channel channel, groovy.lang.Closure closure)
channel - the channelclosure - callback closure
Groovy Documentation