Brooklyn

brooklyn.policy.loadbalancing
[Java] Interface BalanceableWorkerPool

brooklyn.entity.rebind.Rebindable
  brooklyn.policy.loadbalancing.BalanceableWorkerPool
      brooklyn.entity.Entity
          brooklyn.entity.trait.Identifiable
              brooklyn.entity.trait.Resizable
All Superinterfaces:
Rebindable, Entity, Identifiable, Resizable

@ImplementedBy(BalanceableWorkerPoolImpl.class)
public interface BalanceableWorkerPool
extends Entity, Resizable

Represents an elastic group of "container" entities, each of which is capable of hosting "item" entities that perform work and consume the container's available resources (e.g. CPU or bandwidth). Auto-scaling and load-balancing policies can be attached to this pool to provide dynamic elasticity based on workrates reported by the individual item entities.


Nested Class Summary
static class BalanceableWorkerPool.ContainerItemPair

Encapsulates an item and a container; emitted for ITEM_ADDED, ITEM_REMOVED and ITEM_MOVED sensors.

 
Field Summary
static BasicNotificationSensor CONTAINER_ADDED

static BasicNotificationSensor CONTAINER_REMOVED

static BasicNotificationSensor ITEM_ADDED

static BasicNotificationSensor ITEM_MOVED

static BasicNotificationSensor ITEM_REMOVED

 
Fields inherited from interface Resizable
RESIZE
 
Method Summary
Group getContainerGroup()

Group getItemGroup()

void setContents(Group containerGroup, Group itemGroup)

void setResizable(Resizable resizable)

 
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 Resizable
getCurrentSize, resize
 

Field Detail

CONTAINER_ADDED

public static BasicNotificationSensor CONTAINER_ADDED


CONTAINER_REMOVED

public static BasicNotificationSensor CONTAINER_REMOVED


ITEM_ADDED

public static BasicNotificationSensor ITEM_ADDED


ITEM_MOVED

public static BasicNotificationSensor ITEM_MOVED


ITEM_REMOVED

public static BasicNotificationSensor ITEM_REMOVED


 
Method Detail

getContainerGroup

public Group getContainerGroup()


getItemGroup

public Group getItemGroup()


setContents

public void setContents(Group containerGroup, Group itemGroup)


setResizable

public void setResizable(Resizable resizable)


 

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