brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grk...@apache.org
Subject [1/2] incubator-brooklyn git commit: Added location definition attribute to location owner
Date Tue, 11 Nov 2014 18:24:46 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 9352bbe90 -> bded2d9e5


Added location definition attribute to location owner


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

Branch: refs/heads/master
Commit: 0a1e0651786106803c7ffc2ca340768a8c545e97
Parents: dc53cec
Author: Matt Champion <mattunderscorechampion@gmail.com>
Authored: Thu Oct 23 17:53:54 2014 +0100
Committer: Matt Champion <mattunderscorechampion@gmail.com>
Committed: Tue Nov 11 09:34:54 2014 +0000

----------------------------------------------------------------------
 core/src/main/java/brooklyn/location/dynamic/LocationOwner.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/0a1e0651/core/src/main/java/brooklyn/location/dynamic/LocationOwner.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/brooklyn/location/dynamic/LocationOwner.java b/core/src/main/java/brooklyn/location/dynamic/LocationOwner.java
index c743bbd..f511569 100644
--- a/core/src/main/java/brooklyn/location/dynamic/LocationOwner.java
+++ b/core/src/main/java/brooklyn/location/dynamic/LocationOwner.java
@@ -27,6 +27,7 @@ import brooklyn.event.AttributeSensor;
 import brooklyn.event.basic.BasicAttributeSensorAndConfigKey;
 import brooklyn.event.basic.Sensors;
 import brooklyn.location.Location;
+import brooklyn.location.LocationDefinition;
 import brooklyn.util.flags.SetFromFlag;
 
 import com.google.common.annotations.Beta;
@@ -70,6 +71,9 @@ public interface LocationOwner<L extends Location & DynamicLocation<E,
L>, E ext
     AttributeSensor<Boolean> DYNAMIC_LOCATION_STATUS = Sensors.newBooleanSensor(
             "entity.dynamicLocation.status", "The status of the location owned by this entity");
 
+    AttributeSensor<LocationDefinition> LOCATION_DEFINITION = Sensors.newSensor(
+        LocationDefinition.class, "entity.dynamicLocation.definition", "The location definition
for the location owned by this entity");
+
     L getDynamicLocation();
 
     L createLocation(Map<String, ?> flags);


Mime
View raw message