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).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.
|
addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParent
getCatalogItemId, getTagSupport, tags
config, setConfig
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)