public interface Group extends Entity
Entity
that groups together other entities.
The grouping can be for any purpose, such as allowing easy management/monitoring of
a group of entities. The grouping could be static (i.e. a fixed set of entities)
or dynamic (i.e. contains all entities that match some filter).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 | Method and Description |
---|---|
<T extends Entity> |
addChild(EntitySpec<T> spec)
As in super, but note this does NOT by default add it as a member; see
addMemberChild(EntitySpec) |
<T extends Entity> |
addChild(T child)
As in super, but note this does NOT by default add it as a member; see
addMemberChild(Entity) |
boolean |
addMember(Entity member)
Adds the given member, returning true if this modifies the set of members (i.e.
|
<T extends Entity> |
addMemberChild(EntitySpec<T> spec)
As
addChild(EntitySpec) followed by addMember(Entity) |
<T extends Entity> |
addMemberChild(T child)
As
addChild(Entity) followed by addMember(Entity) |
java.lang.Integer |
getCurrentSize() |
java.util.Collection<Entity> |
getMembers()
Return the entities that are members of this group.
|
boolean |
hasMember(Entity member) |
boolean |
removeMember(Entity member)
Removes the given member, returning true if this modifies the set of members (i.e.
|
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
java.util.Collection<Entity> getMembers()
boolean hasMember(Entity member)
boolean addMember(Entity member)
boolean removeMember(Entity member)
java.lang.Integer getCurrentSize()
<T extends Entity> T addMemberChild(EntitySpec<T> spec)
addChild(EntitySpec)
followed by addMember(Entity)
<T extends Entity> T addMemberChild(T child)
addChild(Entity)
followed by addMember(Entity)
<T extends Entity> T addChild(EntitySpec<T> spec)
addMemberChild(EntitySpec)
<T extends Entity> T addChild(T child)
addMemberChild(Entity)