> + public boolean apply(Server server) {
> + checkNotNull(server, "server must be defined");
> +
> + if (status.equals(server.getStatus())) {
> + return true;
> + }
> + else {
> + Server serverUpdated = serverApi.get(server.getId());
> + checkNotNull(serverUpdated, "Server %s not found.",
> server.getId());
> +
> + return status.equals(serverUpdated.getStatus());
> + }
> + }
> + }
> +
> + public static class ServerActivePredicate implements
> Predicate<ServerCreated> {
Rename to `ServerCreatedStatusPredicate` or so? Since it can check for statuses
other than ACTIVE?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/355/files#r12030503