Package org.jclouds.cloudstack.strategy
Class BlockUntilJobCompletesAndReturnResult
- java.lang.Object
-
- org.jclouds.cloudstack.strategy.BlockUntilJobCompletesAndReturnResult
-
@Singleton public class BlockUntilJobCompletesAndReturnResult extends Object
-
-
Constructor Summary
Constructors Constructor Description BlockUntilJobCompletesAndReturnResult(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete)
-
-
-
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
-
-