> + Injector injector =
> newBuilder().modules(modules).overrides(props).buildInjector();
> + constants = injector.getInstance(OneAndOneConstants.class);
> + Predicate<Server> serverAvailableCheck = new Predicate<Server>() {
> + @Override
> + public boolean apply(Server currentServer) {
> + Server server = api.serverApi().get(currentServer.id());
> +
> + if ((server.status().state() != Types.ServerState.POWERED_OFF
> + && server.status().state() !=
> Types.ServerState.POWERED_ON)
> + || server.status().percent() != 0) {
> + return false;
> + } else {
> + return true;
> + }
> + }
> + };
Is there an example for this in the HttpApiModule this is in the
ComputeContextModule, maybe leave it here until we get to the compute and then
added it to the ContextModule?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/275/files/0767d011a984011133c9e34b3389b449ca0756cd#r68864765