GitHub user alasdairhodge opened a pull request:

    https://github.com/apache/brooklyn-server/pull/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);
    ````

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/alasdairhodge/brooklyn-server 
generalise-entities-wait

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/584.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 #584
    
----
commit 24f4e0b1ac3ed2d463c51b5b2126f0726b44436a
Author: Alasdair Hodge <[email protected]>
Date:   2017-03-08T13:21:20Z

    Add Functionals.isSatisfied(subject, predicate)

commit 71727885f174b17b27ef64d1090930084daf3430
Author: Alasdair Hodge <[email protected]>
Date:   2017-03-08T13:21:37Z

    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.
---

Reply via email to