org.jclouds.googlecomputeengine.predicates
Class GlobalOperationDonePredicate

java.lang.Object
  extended by org.jclouds.googlecomputeengine.predicates.GlobalOperationDonePredicate
All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<Operation>>

public class GlobalOperationDonePredicate
extends Object
implements com.google.common.base.Predicate<AtomicReference<Operation>>

Tests that a Global Operation is done, returning the completed Operation when it is.

Author:
David Alves

Constructor Summary
GlobalOperationDonePredicate(GoogleComputeEngineApi api, com.google.common.base.Supplier<String> project)
           
 
Method Summary
 boolean apply(AtomicReference<Operation> input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Predicate
equals
 

Constructor Detail

GlobalOperationDonePredicate

@Inject
public GlobalOperationDonePredicate(GoogleComputeEngineApi api,
                                           com.google.common.base.Supplier<String> project)
Method Detail

apply

public boolean apply(AtomicReference<Operation> input)
Specified by:
apply in interface com.google.common.base.Predicate<AtomicReference<Operation>>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.