> +/**
> + * The {@link ImageExtension} implementation for the DigitalOcean provider.
> + * 
> + * @author Sergi Castro
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class DigitalOceanImageExtension implements ImageExtension {
> +
> +   @Resource
> +   @Named(ComputeServiceConstants.COMPUTE_LOGGER)
> +   protected Logger logger = Logger.NULL;
> +
> +   private final DigitalOceanApi api;
> +   private final Predicate<Integer> imageAvailablePredicate;
> +   private final Predicate<Integer> nodeStoppedPredicate;

In the DigitalOcean API, the calls that take some time to complete return just 
an `int` which is the identifier of the event to track. Those predicates take 
care of tracking those events until completed.

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

Reply via email to