> + * <pre>
> + * {@code
> + * if (!ServerPredicates.awaitStatus(serverApi, ACTIVE, 300,
> 2).apply(server.getId())) {
> + * throw new TimeoutException("Timeout on server: " + serverCreated);
> + * }
> + * </pre>
> + */
> +public class ServerPredicates {
> + private static final int TEN_MINUTES = 600;
> + private static final int FIVE_SECONDS = 5;
> +
> + /**
> + * Waits 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.
Fixed in all comments.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/355/files#r12113474