org.jclouds.cloudstack.strategy
Class BlockUntilJobCompletesAndReturnResult
java.lang.Object
org.jclouds.cloudstack.strategy.BlockUntilJobCompletesAndReturnResult
@Singleton
public class BlockUntilJobCompletesAndReturnResult
- extends Object
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
BlockUntilJobCompletesAndReturnResult
@Inject
public BlockUntilJobCompletesAndReturnResult(CloudStackClient client,
com.google.common.base.Predicate<Long> jobComplete)
apply
public <T> T apply(AsyncCreateResponse job)
- Parameters:
job
-
- Returns:
- result of the job's execution
- Throws:
ExecutionException
- if the job contained an error
Copyright © 2009-2012 jclouds. All Rights Reserved.