Brooklyn

brooklyn.policy.loadbalancing
[Java] Class ItemsInContainersGroup

java.lang.Object
  groovy.lang.GroovyObjectSupport
      brooklyn.entity.basic.AbstractEntity
          brooklyn.entity.basic.AbstractGroup
              brooklyn.entity.basic.DynamicGroup
                  brooklyn.policy.loadbalancing.ItemsInContainersGroup

public class ItemsInContainersGroup
extends DynamicGroup

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 DynamicGroup
log
 
Fields inherited from class AbstractEntity
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings
 
Constructor Summary
ItemsInContainersGroup()

ItemsInContainersGroup(java.util.Map props)

ItemsInContainersGroup(Entity owner)

ItemsInContainersGroup(java.util.Map props, Entity owner)

 
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 DynamicGroup
acceptsEntity, addSubscription, onEntityAdded, onEntityChanged, onEntityRemoved, onManagementBecomingMaster, onManagementNoLongerMaster, rescanEntities, setEntityFilter, setEntityFilter, stop
 
Methods inherited from class AbstractGroup
addMember, getCurrentSize, getMembers, hasMember, removeMember, setMembers, setMembers
 
Methods inherited from class AbstractEntity
addEnricher, addGroup, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, configure, configure, destroy, emit, emitInternal, firstLocation, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getConfig, getConfig, getConfig, getConfig, getConfigMap, getEffector, getEnrichers, getEntityType, getExecutionContext, getGroups, getLocations, getManagementContext, getMutableEntityType, getOwnedChildren, getOwner, getPolicies, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, invalidate, invoke, invoke, invokeFromJava, invokeMethod, onManagementBecomingMaster, onManagementNoLongerMaster, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeEnricher, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setBeingManaged, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setOwner, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, unsubscribe, unsubscribe
 
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

ItemsInContainersGroup

public ItemsInContainersGroup()


ItemsInContainersGroup

public ItemsInContainersGroup(java.util.Map props)


ItemsInContainersGroup

public ItemsInContainersGroup(Entity owner)


ItemsInContainersGroup

public ItemsInContainersGroup(java.util.Map props, Entity owner)


 
Method Detail

acceptsEntity

protected boolean acceptsEntity(Entity e)


onEntityAdded

protected void onEntityAdded(Entity item)


onEntityRemoved

protected void onEntityRemoved(Entity item)


setContainers

public void setContainers(Group containerGroup)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.