> +   public static Predicate<Server> awaitShutoff(ServerApi serverApi) {
> +      ServerStatusPredicate statusPredicate = new 
> ServerStatusPredicate(serverApi, SHUTOFF);
> +
> +      return retry(statusPredicate, 600, 5, 5, SECONDS);
> +   }
> +   
> +   public static Predicate<Server> awaitStatus(
> +         ServerApi serverApi, Status status, long maxWaitInSec, long 
> periodInSec) {
> +      ServerStatusPredicate statusPredicate = new 
> ServerStatusPredicate(serverApi, status);
> +
> +      return retry(statusPredicate, maxWaitInSec, periodInSec, periodInSec, 
> SECONDS);
> +   }
> +   
> +   public static class ServerStatusPredicate implements Predicate<Server> {
> +      private ServerApi serverApi;
> +      private Status status;

Fixed.

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

Reply via email to