org.jclouds.cloudstack.strategy
Class BlockUntilJobCompletesAndReturnResult
java.lang.Object
org.jclouds.cloudstack.strategy.BlockUntilJobCompletesAndReturnResult
@Singleton
public class BlockUntilJobCompletesAndReturnResult
- extends Object
- Author:
- Adrian Cole
|
Field Summary |
protected org.jclouds.logging.Logger |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
BlockUntilJobCompletesAndReturnResult
@Inject
public BlockUntilJobCompletesAndReturnResult(CloudStackClient client,
com.google.common.base.Predicate<String> 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.