brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aleds...@apache.org
Subject [1/2] brooklyn-server git commit: Stop dynamiccluster.zone.enable inheritance
Date Tue, 19 Dec 2017 12:24:33 GMT
Repository: brooklyn-server
Updated Branches:
  refs/heads/master 862fef815 -> 4c2e62106


Stop dynamiccluster.zone.enable inheritance


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

Branch: refs/heads/master
Commit: c01dcaec894db583161a3482b094b195c0338e86
Parents: 862fef8
Author: Duncan Godwin <duncan.godwin@cloudsoftcorp.com>
Authored: Tue Dec 19 11:03:44 2017 +0000
Committer: Duncan Godwin <duncan.godwin@cloudsoftcorp.com>
Committed: Tue Dec 19 11:03:44 2017 +0000

----------------------------------------------------------------------
 .../java/org/apache/brooklyn/entity/group/DynamicCluster.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/c01dcaec/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java b/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java
index 9a0b3ba..1ca953a 100644
--- a/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java
+++ b/core/src/main/java/org/apache/brooklyn/entity/group/DynamicCluster.java
@@ -162,8 +162,11 @@ public interface DynamicCluster extends AbstractGroup, Cluster, MemberReplaceabl
             Map.class, "dynamiccluster.customChildFlags", "Additional flags to be passed
to children when they are being created", ImmutableMap.of());
 
     @SetFromFlag("enableAvailabilityZones")
-    ConfigKey<Boolean> ENABLE_AVAILABILITY_ZONES = ConfigKeys.newBooleanConfigKey(
-            "dynamiccluster.zone.enable", "Whether to use availability zones, or just deploy
everything into the generic location", false);
+    ConfigKey<Boolean> ENABLE_AVAILABILITY_ZONES = ConfigKeys.builder(Boolean.class,
"dynamiccluster.zone.enable")
+            .description("Whether to use availability zones, or just deploy everything into
the generic location")
+            .defaultValue(false)
+            .runtimeInheritance(BasicConfigInheritance.NOT_REINHERITED)
+            .build();
 
     @SetFromFlag("zoneFailureDetector")
     ConfigKey<ZoneFailureDetector> ZONE_FAILURE_DETECTOR = ConfigKeys.newConfigKey(


Mime
View raw message