org.jclouds.cloudstack.strategy
Class BlockUntilJobCompletesAndReturnResult

java.lang.Object
  extended by org.jclouds.cloudstack.strategy.BlockUntilJobCompletesAndReturnResult

@Singleton
public class BlockUntilJobCompletesAndReturnResult
extends Object

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
BlockUntilJobCompletesAndReturnResult(CloudStackClient client, com.google.common.base.Predicate<Long> jobComplete)
           
 
Method Summary
<T> T
apply(AsyncCreateResponse job)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

BlockUntilJobCompletesAndReturnResult

@Inject
public BlockUntilJobCompletesAndReturnResult(CloudStackClient client,
                                                    com.google.common.base.Predicate<Long> 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


Copyright © 2009-2012 jclouds. All Rights Reserved.