org.jclouds.compute.predicates
Class NodePresentAndInIntendedState

java.lang.Object
  extended by org.jclouds.compute.predicates.NodePresentAndInIntendedState
All Implemented Interfaces:
com.google.common.base.Predicate<NodeMetadata>
Direct Known Subclasses:
NodeRunning, NodeSuspended

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

Tests to see if a node is active.

Author:
Adrian Cole

Field Summary
protected  Logger logger
           
 
Constructor Summary
NodePresentAndInIntendedState(NodeState intended, ComputeService client)
           
NodePresentAndInIntendedState(NodeState intended, Set<NodeState> invalids, ComputeService client)
           
 
Method Summary
 boolean apply(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

NodePresentAndInIntendedState

@Inject
public NodePresentAndInIntendedState(NodeState intended,
                                            ComputeService client)

NodePresentAndInIntendedState

public NodePresentAndInIntendedState(NodeState intended,
                                     Set<NodeState> invalids,
                                     ComputeService client)
Method Detail

apply

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


Copyright © 2009-2011 jclouds. All Rights Reserved.