|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
brooklyn.entity.basic.AbstractEntity
brooklyn.entity.basic.AbstractGroup
brooklyn.entity.group.DynamicCluster
public class DynamicCluster extends AbstractGroup
A cluster of entities that can dynamically increase or decrease the number of entities.
Field Summary | |
---|---|
static BasicAttributeSensor |
SERVICE_STATE
|
Fields inherited from class AbstractEntity | |
---|---|
LOG, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, application, attributesInternal, configsInternal, execution, managementContext, managementData, subscription, tempWorkings |
Constructor Summary | |
DynamicCluster(java.util.Map properties, Entity owner)
Instantiate a new DynamicCluster. |
|
DynamicCluster(Entity owner)
|
|
DynamicCluster(java.util.Map properties)
|
Method Summary | |
---|---|
protected Entity
|
addNode()
|
protected boolean
|
calculateServiceUp()
Default impl is to be up when running, and ! |
protected java.util.Map
|
getCustomChildFlags()
|
EntityFactory
|
getFactory()
|
protected Entity
|
removeNode()
|
protected Entity
|
removeNode(Entity entity)
|
boolean
|
removeOwnedChild(Entity child)
|
java.lang.Integer
|
resize(java.lang.Integer desiredSize)
|
void
|
restart()
|
void
|
setFactory(EntityFactory factory)
|
void
|
setRemovalStrategy(Function val)
|
void
|
setRemovalStrategy(groovy.lang.Closure val)
|
void
|
start(java.util.Collection locs)
|
void
|
stop()
|
protected java.lang.Throwable
|
unwrapException(java.lang.Throwable e)
|
protected void
|
waitForTasksOnEntityStart(java.util.Map tasks)
|
Methods inherited from class AbstractGroup | |
---|---|
addMember, getCurrentSize, getMembers, hasMember, removeMember, setMembers, setMembers |
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 final BasicAttributeSensor SERVICE_STATE
Constructor Detail |
---|
public DynamicCluster(java.util.Map properties, Entity owner)
properties
- the properties of the cluster (these may be visible to created children by inheritance,
but to set properties on children explicitly, use the factory)owner
- the entity that owns this cluster (optional)
public DynamicCluster(Entity owner)
public DynamicCluster(java.util.Map properties)
Method Detail |
---|
protected Entity addNode()
protected boolean calculateServiceUp()
protected java.util.Map getCustomChildFlags()
public EntityFactory getFactory()
protected Entity removeNode()
protected Entity removeNode(Entity entity)
@Override public boolean removeOwnedChild(Entity child)
public java.lang.Integer resize(java.lang.Integer desiredSize)
public void restart()
public void setFactory(EntityFactory factory)
public void setRemovalStrategy(Function val)
public void setRemovalStrategy(groovy.lang.Closure val)
public void start(java.util.Collection locs)
public void stop()
protected java.lang.Throwable unwrapException(java.lang.Throwable e)
protected void waitForTasksOnEntityStart(java.util.Map tasks)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.