|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
brooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractGroupImpl
brooklyn.entity.basic.DynamicGroupImpl
brooklyn.policy.loadbalancing.ItemsInContainersGroup
public class ItemsInContainersGroup extends DynamicGroupImpl
A group of items that are contained within a given (dynamically changing) set of containers. The setContainers(brooklyn.entity.Group) sets the group of containers. The membership of that group is dynamically tracked. When containers are added/removed, or when an items is added/removed, or when an Moveable item is moved then the membership of this group of items is automatically updated accordingly. For example: in Monterey, this could be used to track the actors that are within a given cluster of venues.
Field Summary |
---|
Fields inherited from class DynamicGroupImpl | |
---|---|
log |
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
ItemsInContainersGroup()
|
|
ItemsInContainersGroup(java.util.Map props)
|
|
ItemsInContainersGroup(Entity parent)
|
|
ItemsInContainersGroup(java.util.Map props, Entity parent)
|
Method Summary | |
---|---|
protected boolean
|
acceptsEntity(Entity e)
|
protected void
|
onEntityAdded(Entity item)
|
protected void
|
onEntityRemoved(Entity item)
|
void
|
setContainers(Group containerGroup)
|
Methods inherited from class DynamicGroupImpl | |
---|---|
acceptsEntity, addSubscription, addSubscription, onEntityAdded, onEntityChanged, onEntityRemoved, onManagementBecomingMaster, onManagementNoLongerMaster, rescanEntities, setEntityFilter, setEntityFilter, stop |
Methods inherited from class AbstractGroupImpl | |
---|---|
addMember, getCurrentSize, getMembers, hasMember, removeMember, setMembers, setMembers |
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Constructor Detail |
---|
public ItemsInContainersGroup()
public ItemsInContainersGroup(java.util.Map props)
public ItemsInContainersGroup(Entity parent)
public ItemsInContainersGroup(java.util.Map props, Entity parent)
Method Detail |
---|
protected boolean acceptsEntity(Entity e)
protected void onEntityAdded(Entity item)
protected void onEntityRemoved(Entity item)
public void setContainers(Group containerGroup)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.