Hi,
I want to upgrade a small administrative application for an internal
OpenStack environment to jclouds-2.1.0, however I'm stuck due to missing
ServerPredicates.
In the commit message of aa11765bee8e5e7f2d062ba8123c0dced822f071,
Andrea Turli states:
"- remove ServerPredicates as it is now duplicated"
but I can't find another ServerPredicates class?!
So: how is the following code supposed to be implemented using
jclouds-2.1.0 resp. what is the replacement for ServerPredicates?
===================================== snip ==========================
private void doSomethingWhileServerRunning(final Server s) {
final String sid = s.getId();
while (!ServerPredicates.awaitStatus(sapi,
Server.Status.SHUTOFF, 30, 5).apply(sid)) {
/* do something with the server console ... */
}
...
===================================== snip ==========================
Thanks in Advance.
-Fritz