GitHub user alasdairhodge opened a pull request:
https://github.com/apache/brooklyn-server/pull/583
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);
````
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/alasdairhodge/brooklyn-server
generalised-entities-wait-for
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-server/pull/583.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #583
----
commit 44d7133acb852bb42895c08ff6bcd91def1eaa51
Author: Alasdair Hodge <[email protected]>
Date: 2017-03-08T08:06:51Z
Add Functionals.isSatisfied(subject, predicate)
commit 61f8fc070f76d01c3a8d82a5abd09da7e387224b
Author: Alasdair Hodge <[email protected]>
Date: 2017-03-08T08:07:21Z
Add generalised Entities.waitFor(entity, condition, timeout)
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---