|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
interface Connection
A SSH connection.
| Method Summary | |
|---|---|
void
|
cleanup()
Cleanup all channels. |
ChannelExec
|
createExecutionChannel(java.lang.String command, ExecutionSettings executionSettings)
Create an execution channel. |
ChannelSftp
|
createSftpChannel()
Create a SFTP channel. |
ChannelShell
|
createShellChannel(ShellSettings shellSettings)
Create a shell channel. |
void
|
executeWhenClosedClosures()
Execute registered closures. |
Remote
|
getRemote()
Return the remote host. |
boolean
|
isAnyError()
Return if any channel was error. |
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 cleanup()
ChannelExec createExecutionChannel(java.lang.String command, ExecutionSettings executionSettings)
ChannelSftp createSftpChannel()
ChannelShell createShellChannel(ShellSettings shellSettings)
void executeWhenClosedClosures()
Remote getRemote()
boolean isAnyError()
boolean isAnyPending()
void whenClosed(Channel channel, groovy.lang.Closure closure)
channel - the channelclosure - callback closure
Groovy Documentation