Brooklyn

brooklyn.policy.loadbalancing
[Java] Class ItemsInContainersGroupImpl

java.lang.Object
  brooklyn.entity.basic.AbstractEntity
      brooklyn.entity.basic.AbstractGroupImpl
          brooklyn.entity.basic.DynamicGroupImpl
              brooklyn.policy.loadbalancing.ItemsInContainersGroupImpl
All Implemented Interfaces:
ItemsInContainersGroup

public class ItemsInContainersGroupImpl
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
EFFECTOR_ADDED, EFFECTOR_CHANGED, EFFECTOR_REMOVED, LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, managementSupport, tempWorkings
 
Constructor Summary
ItemsInContainersGroupImpl()

 
Method Summary
protected boolean acceptsEntity(Entity e)

protected Predicate getItemFilter()

void init()

protected void onEntityAdded(Entity item)

protected void onEntityRemoved(Entity item)

void setContainers(Group containerGroup)

 
Methods inherited from class DynamicGroupImpl
acceptsEntity, addSubscription, addSubscription, init, onEntityAdded, onEntityChanged, onEntityRemoved, onManagementBecomingMaster, onManagementNoLongerMaster, rescanEntities, setEntityFilter, setEntityFilter, stop
 
Methods inherited from class AbstractGroupImpl
addMember, getCurrentSize, getMembers, hasMember, init, removeMember, setManagementContext, setMembers, setMembers
 
Methods inherited from class AbstractEntity
addChild, addChild, addEnricher, addGroup, addLocations, addPolicy, clearLocations, clearParent, configure, configure, configure, configure, configure, configure, destroy, emit, emitInternal, equals, finalize, firstLocation, getAllAttributes, getAllConfig, getApplication, getApplicationId, getAttribute, getAttributeByNameParts, getChildren, getConfig, getConfig, getConfig, getConfig, getConfigMap, getCreationTime, getDisplayName, getEffector, getEnrichers, getEntityManager, getEntityType, getEntityTypeName, getExecutionContext, getGroups, getIconUrl, getId, getLocations, getManagementContext, getManagementSupport, getMutableEntityType, getParent, getPolicies, getProxy, getProxyIfAvailable, getRebindSupport, getSubscriptionContext, getSubscriptionTracker, hashCode, init, invalidateReferences, invoke, invoke, invoke, isLegacyConstruction, onManagementBecomingMaster, onManagementNoLongerMaster, onManagementStarted, onManagementStarting, onManagementStopped, refreshInheritedConfig, removeAllEnrichers, removeAllPolicies, removeAttribute, removeChild, removeEnricher, removeLocations, removePolicy, setApplication, setAttribute, setAttribute, setAttributeWithoutPublishing, setConfig, setConfig, setConfig, setConfig, setConfig, setConfig, setConfigEvenIfOwned, setConfigEvenIfOwned, setConfigIfValNonNull, setConfigIfValNonNull, setDisplayName, setManagementContext, setParent, setProxy, subscribe, subscribeToChildren, subscribeToMembers, toMetadataRecord, toString, toStringHelper, unsubscribe, unsubscribe
 

Constructor Detail

ItemsInContainersGroupImpl

public ItemsInContainersGroupImpl()


 
Method Detail

acceptsEntity

protected boolean acceptsEntity(Entity e) {
protected boolean acceptsEntity(Entity e)


getItemFilter

protected Predicate getItemFilter()


init

public void init() {
public void init()


onEntityAdded

protected void onEntityAdded(Entity item)


onEntityRemoved

protected void onEntityRemoved(Entity item)


setContainers

public void setContainers(Group containerGroup) {
public void setContainers(Group containerGroup)


 

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