org.jclouds.openstack.nova.v2_0.predicates
Class ServerPredicates.ServerStatusPredicate
java.lang.Object
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>
| 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 |
ServerPredicates.ServerStatusPredicate
public ServerPredicates.ServerStatusPredicate(ServerApi serverApi,
Server.Status status)
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.