<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 25 Jan 2011, at 11:33, Pete Muir wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 25 Jan 2011, at 11:09, Galder Zamarreņo wrote:<br><br><blockquote type="cite">Rather than sleeping which is a bit rudimentary and might hide problems (even after 10 seconds the cluster might not be formed due to env issues), you could wait until the view contains 2 nodes. IIRC, code that this can be found in the testsuite and radargun too. I think radargun might be a better example since different cache managers run in diff processes, whereas in the testsuite they run in same process. So, the methods, IIRC, are a bit different.</blockquote></div></blockquote>Here is the code:<br><a href="https://github.com/radargun/radargun/blob/master/framework/src/main/java/org/radargun/stages/ClusterValidationStage.java">https://github.com/radargun/radargun/blob/master/framework/src/main/java/org/radargun/stages/ClusterValidationStage.java</a></div><br></body></html>