public interface DynamicGroup extends AbstractGroup
Entity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Modifier and Type | Field and Description |
---|---|
static ConfigKey<<any>> |
ENTITY_FILTER |
static MethodEffector<java.lang.Void> |
RESCAN_EFFECTOR |
static AttributeSensor<java.lang.Boolean> |
RUNNING |
FIRST, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECK
GROUP_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,
<any> filter)
As
addSubscription(Entity, Sensor) but with an additional filter. |
<any> |
entityFilter()
Deprecated.
since 0.10.0 use
config().get(ENTITY_FILTER) instead. |
void |
rescanEntities()
Rescans all entities to determine whether they match the filter.
|
void |
setEntityFilter(<any> filter)
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() !) |
getFirst, setMembers, setMembers
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
addFeed, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEntityType, getIconUrl, getId, getLocations, getParent, groups, invoke, policies, relations, removeChild, sensors, setDisplayName, setParent
getCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tags
config, getConfig
static final ConfigKey<<any>> 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(<any> filter)
ENTITY_FILTER
, overriding (and rescanning all) if already set.<T> void addSubscription(Entity producer, Sensor<T> sensor, <any> 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.
@Deprecated <any> entityFilter()
config().get(ENTITY_FILTER)
instead.