Closed leonardofl closed 11 years ago
Better not: SshWaiter is not based on a number of trials, since it keeps trying again and again until reach the timeout. However, SshWaiter should be used, ideally, only at the NodeCreator class to wait for the first SSH. Other classes should not use SshWaiter anymore... they should use Invoker to try to execute some command on the node (the Invoker will try to execute it several times if failures happen).
Use Invoker in the SshWaiter implementation, and make a getConfiguredSshWaiter in DeploymentManager that uses timeout and trials configuration, and returns a sshWaiter that returns a configured ssh.