org.jclouds.openstack.nova.v2_0.predicates
Class ServerPredicates.ServerStatusPredicate

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.predicates.ServerPredicates.ServerStatusPredicate
All Implemented Interfaces:
com.google.common.base.Predicate<String>
Enclosing class:
ServerPredicates

public static class ServerPredicates.ServerStatusPredicate
extends Object
implements com.google.common.base.Predicate<String>


Constructor Summary
ServerPredicates.ServerStatusPredicate(ServerApi serverApi, Server.Status status)
           
 
Method Summary
 boolean apply(String serverId)
           
 
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

ServerPredicates.ServerStatusPredicate

public ServerPredicates.ServerStatusPredicate(ServerApi serverApi,
                                              Server.Status status)
Method Detail

apply

public boolean apply(String serverId)
Specified by:
apply in interface com.google.common.base.Predicate<String>
Returns:
boolean Return true when the Server reaches the Status, false otherwise
Throws:
IllegalStateException - if the Server associated with serverId does not exist


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