Class BlockUntilJobCompletesAndReturnResult


  • @Singleton
    public class BlockUntilJobCompletesAndReturnResult
    extends Object
    • Field Detail

      • logger

        @Named("jclouds.compute")
        protected Logger logger
    • Constructor Detail

      • BlockUntilJobCompletesAndReturnResult

        @Inject
        public BlockUntilJobCompletesAndReturnResult​(CloudStackApi client,
                                                     com.google.common.base.Predicate<String> jobComplete)
    • Method Detail

      • apply

        public <T> T apply​(AsyncCreateResponse job)
        Parameters:
        job -
        Returns:
        result of the job's execution
        Throws:
        ExecutionException - if the job contained an error