> +
> + // Wait for the instance to become Available before moving on
> + // If you want to know what's happening during the polling, enable
> logging. See
> + //
> /jclouds-example/rackspace/src/main/java/org/jclouds/examples/rackspace/Logging.java
> + if (!InstancePredicates.awaitAvailable(instanceApi).apply(instance)) {
> + throw new TimeoutException("Timeout on creating instance for
> flavor: " + flavor);
> + }
> +
> + System.out.println(" " + instance);
> + }
> +
> + /**
> + * Always close your service when you're done with it.
> + */
> + @SuppressWarnings("deprecation")
> + public void close() {
See above.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r4628730