public interface DynamicGroup extends AbstractGroup
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupport| Modifier and Type | Field and Description |
|---|---|
static ConfigKey< |
ENTITY_FILTER |
static MethodEffector<java.lang.Void> |
RESCAN_EFFECTOR |
static AttributeSensor<java.lang.Boolean> |
RUNNING |
FIRST, FIRST_MEMBER, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECKGROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED| 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,
As
addSubscription(Entity, Sensor) but with an additional filter. |
|
entityFilter() |
void |
rescanEntities()
Rescans all entities to determine whether they match the filter.
|
void |
setEntityFilter(
Sets
ENTITY_FILTER, overriding (and rescanning all) if already set. |
void |
stop()
Deprecated.
since 0.7; no longer supported (was only used in tests, and by classes that
also implemented
Startable.stop()!) |
setMembers, setMembersaddChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMemberaddEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, subscriptions, tagsconfig, getConfig, setConfigstatic final ConfigKey<> ENTITY_FILTER
static final AttributeSensor<java.lang.Boolean> RUNNING
static final MethodEffector<java.lang.Void> RESCAN_EFFECTOR
@Deprecated void stop()
Startable.stop()!)Does not stop any of its members. De-activates the filter and unsubscribes to entity-updates, so the membership of the group will not change.
void rescanEntities()
void setEntityFilter(filter)
ENTITY_FILTER, overriding (and rescanning all) if already set.<T> void addSubscription(Entity producer, Sensor<T> sensor,filter)
addSubscription(Entity, Sensor) but with an additional filter.<T> void addSubscription(Entity producer, Sensor<T> sensor)
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
ENTITY_FILTER) for those entities so subscribed.
entityFilter()