|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
brooklyn.entity.basic.AbstractEntity
brooklyn.policy.loadbalancing.BalanceableWorkerPool
public class BalanceableWorkerPool 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.
Nested Class Summary | |
---|---|
static class |
BalanceableWorkerPool.ContainerItemPair
Encapsulates an item and a container; emitted for |
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 class AbstractEntity | |
---|---|
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings |
Method Summary | |
---|---|
java.lang.Object
|
BalanceableWorkerPool()
|
java.lang.Object
|
BalanceableWorkerPool(java.util.Map properties)
|
java.lang.Object
|
BalanceableWorkerPool(Entity owner)
|
java.lang.Object
|
BalanceableWorkerPool(java.util.Map properties, Entity owner)
|
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)
|
Methods inherited from class groovy.lang.GroovyObjectSupport | |
---|---|
groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll() |
Field Detail |
---|
public static BasicNotificationSensor CONTAINER_ADDED
public static BasicNotificationSensor CONTAINER_REMOVED
public static BasicNotificationSensor ITEM_ADDED
public static BasicNotificationSensor ITEM_MOVED
public static BasicNotificationSensor ITEM_REMOVED
Method Detail |
---|
public java.lang.Object BalanceableWorkerPool()
public java.lang.Object BalanceableWorkerPool(java.util.Map properties)
public java.lang.Object BalanceableWorkerPool(Entity owner)
public java.lang.Object BalanceableWorkerPool(java.util.Map properties, Entity owner)
public Group getContainerGroup()
public java.lang.Integer getCurrentSize()
public Group getItemGroup()
public java.lang.Integer resize(java.lang.Integer desiredSize)
public void setContents(Group containerGroup, Group itemGroup)
public void setResizable(Resizable resizable)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.