Groovy Documentation

org.hidetake.gradle.ssh.internal
[Groovy] Class DefaultSshService

java.lang.Object
  org.hidetake.gradle.ssh.internal.DefaultSshService
All Implemented Interfaces:
SshService

@Singleton
@Slf4j
class DefaultSshService

Default implementation of SshService.

Authors:
hidetake.org


Field Summary
protected groovy.lang.Closure jschFactory

 
Method Summary
void execute(SshSpec sshSpec)

protected void retry(int retryCount, int retryWaitSec, groovy.lang.Closure closure)

Execute the closure with retrying.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Field Detail

jschFactory

protected groovy.lang.Closure jschFactory


 
Method Detail

execute

@Override
void execute(SshSpec sshSpec)


retry

protected void retry(int retryCount, int retryWaitSec, groovy.lang.Closure closure)
Execute the closure with retrying. This method catches only JSchExceptions.
Parameters:
retryCount
retryWaitSec
closure


 

Groovy Documentation