Brooklyn

brooklyn.policy.loadbalancing
[Java] Interface ItemsInContainersGroup

brooklyn.entity.basic.DynamicGroup
  brooklyn.entity.rebind.Rebindable
      brooklyn.entity.Entity
          brooklyn.entity.Group
              brooklyn.policy.loadbalancing.ItemsInContainersGroup
                  brooklyn.entity.trait.Changeable
                      brooklyn.entity.basic.AbstractGroup
                          brooklyn.entity.trait.Identifiable
All Superinterfaces:
DynamicGroup, Rebindable, Entity, Group, Changeable, AbstractGroup, Identifiable

@ImplementedBy(ItemsInContainersGroupImpl.class)
public interface 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
static ConfigKey ITEM_FILTER

 
Fields inherited from interface DynamicGroup
ENTITY_FILTER, RUNNING
 
Fields inherited from interface Changeable
GROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED
 
Method Summary
void setContainers(Group containerGroup)

 
Methods inherited from interface DynamicGroup
addSubscription, addSubscription, rescanEntities, setEntityFilter, setEntityFilter, stop
 
Methods inherited from interface AbstractGroup
setMembers, setMembers
 
Methods inherited from interface Entity
addChild, addChild, addEnricher, addGroup, addPolicy, clearParent, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getRebindSupport, invoke, removeChild, removeEnricher, removePolicy, setParent
 
Methods inherited from interface Group
addMember, getCurrentSize, getMembers, hasMember, removeMember
 

Field Detail

ITEM_FILTER

@SetFromFlag("itemFilter")
public static final ConfigKey ITEM_FILTER


 
Method Detail

setContainers

public void setContainers(Group containerGroup)


 

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