@Singleton public abstract class RefreshAndDoubleCheckOnFailUnlessStatusInvalid<S extends Enum<S>,C extends ComputeMetadataIncludingStatus<S>> extends Object implements com.google.common.base.Predicate<AtomicReference<C>>
ComputeService.getNodeMetadata(java.lang.String) call after the
 predicate passes.| Constructor and Description | 
|---|
RefreshAndDoubleCheckOnFailUnlessStatusInvalid(S intended,
                                              Set<S> invalids)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
apply(AtomicReference<C> atomicResource)  | 
boolean | 
checkStatus(C resource)  | 
protected abstract C | 
refreshOrNull(C resource)  | 
protected Logger logger
public boolean apply(AtomicReference<C> atomicResource)
apply in interface com.google.common.base.Predicate<AtomicReference<C extends ComputeMetadataIncludingStatus<S>>>public boolean checkStatus(C resource)
Copyright © 2009-2013 jclouds. All Rights Reserved.