|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
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 |
---|
public java.util.Map getContainerWorkrates()
public double getCurrentPoolWorkrate()
public double getHighThreshold(ContainerType container)
public java.util.Map getItemWorkrates(ContainerType container)
public Location getLocation(ContainerType container)
public double getLowThreshold(ContainerType container)
public java.lang.String getName()
public java.lang.String getName(ContainerType container)
public java.util.Set getPoolContents()
public double getPoolHighThreshold()
public double getPoolLowThreshold()
public int getPoolSize()
public double getTotalWorkrate(ContainerType container)
public boolean isCold()
public boolean isHot()
public boolean isItemAllowedIn(ItemType item, Location location)
public boolean isItemMoveable(ItemType item)
public void onContainerAdded(ContainerType newContainer, double lowThreshold, double highThreshold)
public void onContainerRemoved(ContainerType oldContainer)
public void onItemAdded(ItemType item, ContainerType parentContainer)
public void onItemAdded(ItemType item, ContainerType parentContainer, boolean immovable)
public void onItemMoved(ItemType item, ContainerType targetContainer)
public void onItemRemoved(ItemType item)
public void onItemWorkrateUpdated(ItemType item, double newValue)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.