public class DynamicGroupImpl extends AbstractGroupImpl implements DynamicGroup
AbstractEntity.BasicConfigurationSupport, AbstractEntity.BasicEnricherSupport, AbstractEntity.BasicGroupSupport, AbstractEntity.BasicPolicySupport, AbstractEntity.BasicSensorSupport, AbstractEntity.BasicSubscriptionSupportEntity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportEntityInternal.EnricherSupportInternal, EntityInternal.EntitySubscriptionSupportInternal, EntityInternal.FeedSupport, EntityInternal.GroupSupportInternal, EntityInternal.PolicySupportInternal, EntityInternal.SensorSupportInternalBrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternalAPPLICATION_ID, CATALOG_ID, CHILD_ADDED, CHILD_REMOVED, CONFIG_KEY_ADDED, CONFIG_KEY_REMOVED, DEFAULT_DISPLAY_NAME, EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, ENTITY_ID, GROUP_ADDED, GROUP_REMOVED, LOCATION_ADDED, LOCATION_REMOVED, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVEDENTITY_FILTER, RESCAN_EFFECTOR, RUNNINGFIRST, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECKGROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED| Constructor and Description |
|---|
DynamicGroupImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addSubscription(Entity producer,
Sensor<T> sensor)
Indicates an entity and/or sensor this group should monitor
|
<T> void |
addSubscription(Entity producer,
Sensor<T> sensor,
<any> filter)
As
DynamicGroup.addSubscription(Entity, Sensor) but with an additional filter. |
<any> |
entityFilter() |
void |
init()
Default entity initialization sets ID sensors and calls
AbstractEntity.initEnrichers(). |
void |
onManagementBecomingMaster()
Invoked by
ManagementContext when this entity becomes managed at a particular management node,
including the initial management started and subsequent management node master-change for this entity. |
void |
onManagementNoLongerMaster()
Invoked by
ManagementContext when this entity becomes mastered at a particular management node,
including the final management end and subsequent management node master-change for this entity. |
void |
rescanEntities()
Rescans all entities to determine whether they match the filter.
|
void |
setEntityFilter(<any> filter)
Sets
DynamicGroup.ENTITY_FILTER, overriding (and rescanning all) if already set. |
void |
stop()
Stops this group.
|
addMember, addMemberChild, addMemberChild, addMemberInternal, getCurrentSize, getMembers, hasMember, removeMember, setManagementContext, setMembers, setMembersaddChild, addChild, addFeed, addLocations, addLocationsWithoutPublishing, clearLocations, clearParent, config, configure, configure, destroy, enrichers, equals, feeds, firstLocation, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEffector, getEntityType, getExecutionContext, getIconUrl, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getProxy, getProxyIfAvailable, getRebindSupport, groups, hashCode, invalidateReferences, invoke, invoke, invoke, onManagementStarted, onManagementStarting, onManagementStopped, policies, relations, removeChild, removeLocations, requestPersist, resetProxy, sensors, setConfigEvenIfOwned, setConfigEvenIfOwned, setDisplayName, setParent, setProxy, subscriptions, toMetadataRecord, toStringaddSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId, tagsgetFirst, setMembers, setMembersaddChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMemberaddFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParentgetCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tagsconfig, getConfigaddSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemIdpublic void init()
AbstractEntityAbstractEntity.initEnrichers().init in class AbstractGroupImplpublic void setEntityFilter(<any> filter)
DynamicGroupDynamicGroup.ENTITY_FILTER, overriding (and rescanning all) if already set.setEntityFilter in interface DynamicGrouppublic <any> entityFilter()
entityFilter in interface DynamicGrouppublic void stop()
DynamicGroupDoes not stop any of its members. De-activates the filter and unsubscribes to entity-updates, so the membership of the group will not change.
stop in interface DynamicGrouppublic <T> void addSubscription(Entity producer, Sensor<T> sensor, <any> filter)
DynamicGroupDynamicGroup.addSubscription(Entity, Sensor) but with an additional filter.addSubscription in interface DynamicGrouppublic <T> void addSubscription(Entity producer, Sensor<T> sensor)
DynamicGroup
Setting either to null indicates everything should be monitored. Note that subscriptions
do not restrict what can be added, they merely ensure prompt membership checking (via
DynamicGroup.ENTITY_FILTER) for those entities so subscribed.
addSubscription in interface DynamicGrouppublic void onManagementBecomingMaster()
AbstractEntityManagementContext when this entity becomes managed at a particular management node,
including the initial management started and subsequent management node master-change for this entity.onManagementBecomingMaster in class AbstractEntitypublic void onManagementNoLongerMaster()
AbstractEntityManagementContext when this entity becomes mastered at a particular management node,
including the final management end and subsequent management node master-change for this entity.onManagementNoLongerMaster in class AbstractEntitypublic void rescanEntities()
DynamicGrouprescanEntities in interface DynamicGroup