brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [2/2] brooklyn-server git commit: Closes #358
Date Fri, 30 Sep 2016 14:32:48 GMT
Closes #358

Allow REST API to return the pinned config key and their constraints for catalog apps

Based on https://github.com/apache/brooklyn-server/pull/354

This expose a new `pinned` flag and `constraints` key to the REST API. It allows the following:
- A blueprint can specify a config key or parameter as pinned by using `@CatalogConfig(pinned
= true)` or in yaml `pinned: true`
- In case of config keys or parameters pinned in YAML, the priority is auto incremented to
keep the order (code lost in [this commit](https://github.com/apache/brooklyn-server/commit/6f624c78b1e7fe72c6df1ecd297b922721b2c023#diff-5310fbeb1f42a3a4cf0508ea441440baL82))


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

Branch: refs/heads/master
Commit: 2e30f08208770da5b0f7c3ff0dd3614028b77a42
Parents: 438e746 e14e1a5
Author: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Authored: Fri Sep 30 17:32:08 2016 +0300
Committer: Svetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Committed: Fri Sep 30 17:32:08 2016 +0300

----------------------------------------------------------------------
 .../brooklyn/api/catalog/CatalogConfig.java     | 10 +++--
 .../catalog/SpecParameterParsingTest.java       |  5 ++-
 .../brooklyn/core/objs/BasicSpecParameter.java  | 39 +++++++++--------
 .../objs/BasicSpecParameterFromClassTest.java   | 20 ++++-----
 .../objs/BasicSpecParameterFromListTest.java    | 19 ++++++++-
 .../policy/action/StopAfterDurationPolicy.java  |  1 -
 .../rest/domain/EntityConfigSummary.java        | 45 ++++++++++++++++----
 .../rest/transform/CatalogTransformer.java      |  4 +-
 .../rest/transform/EntityTransformer.java       | 19 ++++++---
 .../brooklyn/cli/lister/ItemDescriptors.java    |  2 +-
 .../test/framework/RelativeEntityTestCase.java  |  2 -
 11 files changed, 109 insertions(+), 57 deletions(-)
----------------------------------------------------------------------



Mime
View raw message