brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grk...@apache.org
Subject incubator-brooklyn git commit: Add attribute for storing properties reload listener
Date Wed, 12 Nov 2014 13:09:53 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 79e1c941d -> f6e3f8ff9


Add attribute for storing properties reload listener


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

Branch: refs/heads/master
Commit: f6e3f8ff9d7c5551f89d65a8e8157b83da54761e
Parents: 79e1c94
Author: Andrew Kennedy <grkvlt@apache.org>
Authored: Wed Nov 12 04:27:09 2014 +0000
Committer: Andrew Kennedy <grkvlt@apache.org>
Committed: Wed Nov 12 13:09:21 2014 +0000

----------------------------------------------------------------------
 core/src/main/java/brooklyn/config/BrooklynServerConfig.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/f6e3f8ff/core/src/main/java/brooklyn/config/BrooklynServerConfig.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/config/BrooklynServerConfig.java b/core/src/main/java/brooklyn/config/BrooklynServerConfig.java
index 13e4c5d..ac4a380 100644
--- a/core/src/main/java/brooklyn/config/BrooklynServerConfig.java
+++ b/core/src/main/java/brooklyn/config/BrooklynServerConfig.java
@@ -19,8 +19,6 @@
 package brooklyn.config;
 
 import static brooklyn.entity.basic.ConfigKeys.newStringConfigKey;
-
-import brooklyn.catalog.CatalogLoadMode;
 import io.brooklyn.camp.CampPlatform;
 
 import java.io.File;
@@ -31,7 +29,10 @@ import org.apache.commons.io.FileUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import brooklyn.catalog.CatalogLoadMode;
 import brooklyn.entity.basic.ConfigKeys;
+import brooklyn.event.AttributeSensor;
+import brooklyn.event.basic.Sensors;
 import brooklyn.management.ManagementContext;
 import brooklyn.util.exceptions.Exceptions;
 import brooklyn.util.guava.Maybe;
@@ -96,6 +97,8 @@ public class BrooklynServerConfig {
     public static final ConfigKey<CampPlatform> CAMP_PLATFORM = ConfigKeys.newConfigKey(CampPlatform.class,
"brooklyn.camp.platform",
         "Config set at brooklyn management platform to find the CampPlatform instance (bi-directional)");
 
+    public static final AttributeSensor<ManagementContext.PropertiesReloadListener>
PROPERTIES_RELOAD_LISTENER = Sensors.newSensor(
+            ManagementContext.PropertiesReloadListener.class, "brooklyn.management.propertiesReloadListenet",
"Properties reload listener");
 
     public static String getMgmtBaseDir(ManagementContext mgmt) {
         return getMgmtBaseDir(mgmt.getConfig());


Mime
View raw message