Brooklyn

brooklyn.policy.loadbalancing
[Java] Class ItemsInContainersGroup

java.lang.Object
  groovy.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 AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addOwnedChild, addPolicy, assertNotYetOwned, clearOwner, clearParent, configure, configure, configure, configure, configure, createManagementSupport, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getChildrenReference, getConfig, getConfig, getConfig, getConfig, getConfigMap, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getOwnedChildren, getOwnedChildrenReference, getOwner, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hasEverBeenManaged, hashCode, init, invalidateReferences, invoke, invoke, invokeFromJava, invokeMethod, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, refreshInheritedConfig, refreshInheritedConfigOfChildren, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removeOwnedChild, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setBeingManaged, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setOwner, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toString, toStringFieldsToInclude, toStringHelper, 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 parent)


ItemsInContainersGroup

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


 
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.