|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbrooklyn.entity.basic.AbstractEntity
brooklyn.policy.loadbalancing.BalanceableWorkerPoolImpl
public class BalanceableWorkerPoolImpl extends AbstractEntity
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.
Field Summary |
---|
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 | |
BalanceableWorkerPoolImpl()
|
Method Summary | |
---|---|
Group
|
getContainerGroup()
|
java.lang.Integer
|
getCurrentSize()
|
Group
|
getItemGroup()
|
java.lang.Integer
|
resize(java.lang.Integer desiredSize)
|
void
|
setContents(Group containerGroup, Group itemGroup)
|
void
|
setResizable(Resizable resizable)
|
Constructor Detail |
---|
public BalanceableWorkerPoolImpl()
Method Detail |
---|
public Group getContainerGroup()
public java.lang.Integer getCurrentSize()
public Group getItemGroup()
throw new UnsupportedOperationException("Container group is not resizable, and no resizable supplied: "+containerGroup+" of type "+(containerGroup != null ? containerGroup.getClass().getCanonicalName() : null)); public java.lang.Integer resize(java.lang.Integer desiredSize)
this.itemGroup = itemGroup; public void setContents(Group containerGroup, Group itemGroup)
} public void setResizable(Resizable resizable)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.