Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/brooklyn-server/pull/304#discussion_r75631918
--- Diff:
core/src/main/java/org/apache/brooklyn/core/entity/AbstractEntity.java ---
@@ -196,7 +196,11 @@
"entity.group.added", "Group dynamically added to entity");
public static final BasicNotificationSensor<Group> GROUP_REMOVED = new
BasicNotificationSensor<Group>(Group.class,
"entity.group.removed", "Group dynamically removed from
entity");
-
+
+ public static final AttributeSensor<String> ENTITY_ID =
Attributes.ENTITY_ID;
+ public static final AttributeSensor<String> APPLICATION_ID =
Attributes.APPLICATION_ID;
+ public static final AttributeSensor<String> CATALOG_ID =
Attributes.CATALOG_ID;
--- End diff --
simpler to handle the requirement that entity ID is the key in
`MapAggregator` could be for entity ID to be the default key. that feels like
a sensible common default, and means we don't (yet) need to add these
artificial sensors.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---