GitHub user aledsage opened a pull request:
https://github.com/apache/incubator-brooklyn/pull/397
Fix MongoDB rebind, adding AttributeSensor.isTransient
Question for reviewer: is `isTransient` the best name for the field (+
method in the builder)? I'd normally have used `transient`, but that's a
reserved word. And I didn't want to use the opposite (`persistable`) because
folk are familiar with the concept of `transient` fields which is the closest
analogy to this.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aledsage/incubator-brooklyn fix/mongodb-rebind
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-brooklyn/pull/397.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 #397
----
commit b4572b79cb78059374a2fccbbc3d88471a4ba336
Author: Aled Sage <[email protected]>
Date: 2014-12-15T17:36:20Z
Adds AttributeSensor.isTransient
- If set, then that attributeâs value will not be persisted, so will
not be available on rebind.
- Adds Sensors.builder() to avoid too much overloading.
commit f54baf44a2fb1812c97f516a2f55b10d8b1d30c5
Author: Aled Sage <[email protected]>
Date: 2014-12-15T17:37:10Z
Fix MongoDB rebind
- Declare STATUS_BSON as transient, so wonât be persisted
(because that value failed to rebind)
----
---
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.
---