You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2016/02/01 18:49:06 UTC

[02/50] brooklyn-server git commit: Added explicit call to Entities.manage() for whirr entities (fixes entity display issue in web console)

Added explicit call to Entities.manage() for whirr entities (fixes entity display issue in web console)


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

Branch: refs/heads/0.6.0
Commit: 233c2a2150ebf9bc77f5d354b2e0d84f172bb241
Parents: 5943d2d
Author: Martin Harris <gi...@nakomis.com>
Authored: Fri Nov 1 14:47:20 2013 +0000
Committer: Martin Harris <gi...@nakomis.com>
Committed: Fri Nov 1 14:47:20 2013 +0000

----------------------------------------------------------------------
 .../main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/233c2a21/systems/whirr/base/src/main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java
----------------------------------------------------------------------
diff --git a/systems/whirr/base/src/main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java b/systems/whirr/base/src/main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java
index 24b7dee..60d3841 100644
--- a/systems/whirr/base/src/main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java
+++ b/systems/whirr/base/src/main/java/brooklyn/extras/whirr/core/WhirrClusterImpl.java
@@ -20,6 +20,7 @@ import org.slf4j.LoggerFactory;
 
 import brooklyn.entity.Entity;
 import brooklyn.entity.basic.AbstractEntity;
+import brooklyn.entity.basic.Entities;
 import brooklyn.entity.proxying.EntitySpec;
 import brooklyn.location.Location;
 import brooklyn.location.MachineLocation;
@@ -195,12 +196,13 @@ public class WhirrClusterImpl extends AbstractEntity implements WhirrCluster {
                 addChild(EntitySpec.create(WhirrInstance.class).
                     displayName("Instance:" + instance.getId()).
                     configure("instance", instance));
+            Entities.manage(rolesGroup);
 
             for (String role: instance.getRoles()) {
                 log.info("Creating entity for '" + role + "' on instance " + instance.getId());
-                rolesGroup.addChild(EntitySpec.create(WhirrRole.class).
+                Entities.manage(rolesGroup.addChild(EntitySpec.create(WhirrRole.class).
                         displayName("Role:" + role).
-                        configure("role", role));
+                        configure("role", role)));
             }
             addGroup(rolesGroup);
         }