org.jclouds.compute.predicates
Class TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse

java.lang.Object
  extended by org.jclouds.compute.predicates.TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse
All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<NodeMetadata>>

public class TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse
extends Object
implements com.google.common.base.Predicate<AtomicReference<NodeMetadata>>

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse(GetNodeMetadataStrategy client)
           
 
Method Summary
 boolean apply(AtomicReference<NodeMetadata> atomicNode)
           
 boolean checkState(NodeMetadata node)
           
 
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
 

Field Detail

logger

protected Logger logger
Constructor Detail

TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse

@Inject
public TrueIfNullOrTerminatedRefreshAndDoubleCheckOnFalse(GetNodeMetadataStrategy client)
Method Detail

apply

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

checkState

public boolean checkState(NodeMetadata node)


Copyright © 2009-2012 jclouds. All Rights Reserved.