> + *    throw new TimeoutException("Timeout on server: " + server);     
> + * }
> + * }
> + * </pre>
> + */
> +public class ServerPredicates {
> +   /**
> +    * Wait until a Server is Active.
> +    * 
> +    * @param serverApi The ServerApi in the zone where your Server resides.
> +    * @return Predicate That will check the status every 5 seconds for a 
> maximum of 10 minutes.
> +    */
> +   public static Predicate<ServerCreated> awaitActive(ServerApi serverApi) {
> +      ServerActivePredicate statusPredicate = new 
> ServerActivePredicate(serverApi, ACTIVE);
> +
> +      return retry(statusPredicate, 600, 5, 5, SECONDS);

Fixed.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/355/files#r12065194

Reply via email to