org.jclouds.compute.predicates
Class RefreshAndDoubleCheckOnFailUnlessStateInvalid

java.lang.Object
  extended by org.jclouds.compute.predicates.RefreshAndDoubleCheckOnFailUnlessStateInvalid
All Implemented Interfaces:
com.google.common.base.Predicate<AtomicReference<NodeMetadata>>
Direct Known Subclasses:
AtomicNodeRunning, AtomicNodeSuspended

@Singleton
public class RefreshAndDoubleCheckOnFailUnlessStateInvalid
extends Object
implements com.google.common.base.Predicate<AtomicReference<NodeMetadata>>

Tests to see if a node is active.

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended, GetNodeMetadataStrategy client)
           
RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended, Set<NodeState> invalids, 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

RefreshAndDoubleCheckOnFailUnlessStateInvalid

@Inject
public RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended,
                                                            GetNodeMetadataStrategy client)

RefreshAndDoubleCheckOnFailUnlessStateInvalid

public RefreshAndDoubleCheckOnFailUnlessStateInvalid(NodeState intended,
                                                     Set<NodeState> invalids,
                                                     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.