brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From geom...@apache.org
Subject [4/4] brooklyn-server git commit: Closes #584
Date Wed, 08 Mar 2017 15:12:09 GMT
Closes #584

Generalised Entities.waitFor()

Provides general-purpose blocking wait on any entity predicate. Example:
````
    Entities.waitFor(
        machineEntity,
        EntityPredicates.attributeEqualTo(MACHINE_STATE, MachineState.REBOOTING),
        Duration.FIVE_SECONDS);
````


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/40af35c4
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/40af35c4
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/40af35c4

Branch: refs/heads/master
Commit: 40af35c422d5735b7c579f608e8840ad70ba0c24
Parents: b55e234 7b3afac
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Authored: Wed Mar 8 15:11:54 2017 +0000
Committer: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Committed: Wed Mar 8 15:11:54 2017 +0000

----------------------------------------------------------------------
 .../apache/brooklyn/core/entity/Entities.java   | 38 ++++++++++++--------
 .../brooklyn/core/entity/EntityPredicates.java  | 17 +++++++++
 .../brooklyn/core/entity/EntitiesTest.java      | 20 +++++++++--
 .../apache/brooklyn/util/guava/Functionals.java | 12 +++++++
 .../brooklyn/util/guava/FunctionalsTest.java    | 13 ++++++-
 5 files changed, 81 insertions(+), 19 deletions(-)
----------------------------------------------------------------------



Mime
View raw message