Brooklyn

brooklyn.policy.loadbalancing
[Java] Interface BalanceablePoolModel


public interface BalanceablePoolModel

Captures the state of a balanceable cluster of containers and all their constituent items, including workrates, for consumption by a BalancingStrategy.


Method Summary
java.util.Map getContainerWorkrates()

double getCurrentPoolWorkrate()

double getHighThreshold(ContainerType container)

java.util.Map getItemWorkrates(ContainerType container)

contains -1 instead of actual item workrate, for items which cannot be moved

Location getLocation(ContainerType container)

double getLowThreshold(ContainerType container)

java.lang.String getName()

java.lang.String getName(ContainerType container)

java.util.Set getPoolContents()

double getPoolHighThreshold()

double getPoolLowThreshold()

int getPoolSize()

double getTotalWorkrate(ContainerType container)

boolean isCold()

boolean isHot()

boolean isItemAllowedIn(ItemType item, Location location)

boolean isItemMoveable(ItemType item)

void onContainerAdded(ContainerType newContainer, double lowThreshold, double highThreshold)

void onContainerRemoved(ContainerType oldContainer)

void onItemAdded(ItemType item, ContainerType parentContainer)

void onItemAdded(ItemType item, ContainerType parentContainer, boolean immovable)

void onItemMoved(ItemType item, ContainerType targetContainer)

void onItemRemoved(ItemType item)

void onItemWorkrateUpdated(ItemType item, double newValue)

 

Method Detail

getContainerWorkrates

public java.util.Map getContainerWorkrates()


getCurrentPoolWorkrate

public double getCurrentPoolWorkrate()


getHighThreshold

public double getHighThreshold(ContainerType container)


getItemWorkrates

public java.util.Map getItemWorkrates(ContainerType container)
contains -1 instead of actual item workrate, for items which cannot be moved


getLocation

public Location getLocation(ContainerType container)


getLowThreshold

public double getLowThreshold(ContainerType container)


getName

public java.lang.String getName()


getName

public java.lang.String getName(ContainerType container)


getPoolContents

public java.util.Set getPoolContents()


getPoolHighThreshold

public double getPoolHighThreshold()


getPoolLowThreshold

public double getPoolLowThreshold()


getPoolSize

public int getPoolSize()


getTotalWorkrate

public double getTotalWorkrate(ContainerType container)


isCold

public boolean isCold()


isHot

public boolean isHot()


isItemAllowedIn

public boolean isItemAllowedIn(ItemType item, Location location)


isItemMoveable

public boolean isItemMoveable(ItemType item)


onContainerAdded

public void onContainerAdded(ContainerType newContainer, double lowThreshold, double highThreshold)


onContainerRemoved

public void onContainerRemoved(ContainerType oldContainer)


onItemAdded

public void onItemAdded(ItemType item, ContainerType parentContainer)


onItemAdded

public void onItemAdded(ItemType item, ContainerType parentContainer, boolean immovable)


onItemMoved

public void onItemMoved(ItemType item, ContainerType targetContainer)


onItemRemoved

public void onItemRemoved(ItemType item)


onItemWorkrateUpdated

public void onItemWorkrateUpdated(ItemType item, double newValue)


 

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