choreos / choreos_middleware

CHOReOS will implement service middleware support, effectively enabling the deployment of adaptable, QoS-aware choreographies in the ULS Future Internet, integrating and further evolving the latest research advances in the area of Grid and Cloud computing, Enterprise Service Bus (ESB), and pervasive computing. Service-oriented middleware enables adaptable choreographies over ESB-based middleware, Grids, Clouds, and technologies for the Internet of Things, thus overcoming scalability and heterogeneity issues of the Future Internet.
http://www.choreos.fr
Mozilla Public License 2.0
9 stars 6 forks source link

Improve SSHWaiter #84

Closed leonardofl closed 11 years ago

leonardofl commented 11 years ago

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.

leonardofl commented 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).