|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport brooklyn.entity.basic.AbstractEntity brooklyn.entity.basic.AbstractGroupImpl brooklyn.entity.group.DynamicClusterImpl
public class DynamicClusterImpl extends AbstractGroupImpl
A cluster of entities that can dynamically increase or decrease the number of entities.
Field Summary |
---|
Fields inherited from class AbstractEntity | |
---|---|
LOG, POLICY_ADDED, POLICY_REMOVED, SENSOR_ADDED, SENSOR_REMOVED, _subscriptionTracker, attributesInternal, configsInternal, managementSupport, tempWorkings |
Constructor Summary | |
DynamicClusterImpl()
|
|
DynamicClusterImpl(java.util.Map properties, Entity parent)
Instantiate a new DynamicCluster. |
|
DynamicClusterImpl(Entity parent)
|
|
DynamicClusterImpl(java.util.Map properties)
|
Method Summary | |
---|---|
protected Entity
|
addNode()
|
protected boolean
|
calculateServiceUp()
Default impl is to be up when running, and ! |
protected Entity
|
createNode(java.util.Map flags)
|
protected void
|
discardNode(Entity entity)
|
protected java.util.Map
|
getCustomChildFlags()
|
protected EntityFactory
|
getFactory()
|
protected EntitySpec
|
getMemberSpec()
|
protected Function
|
getRemovalStrategy()
|
protected Entity
|
pickAndRemoveMember()
|
boolean
|
removeChild(Entity child)
|
java.lang.String
|
replaceMember(java.lang.String memberId)
|
java.lang.Integer
|
resize(java.lang.Integer desiredSize)
|
void
|
restart()
|
void
|
setFactory(EntityFactory factory)
|
void
|
setMemberSpec(EntitySpec memberSpec)
|
void
|
setRemovalStrategy(Function val)
|
void
|
setRemovalStrategy(groovy.lang.Closure val)
|
void
|
start(java.util.Collection locs)
|
void
|
stop()
|
protected void
|
stopAndRemoveNode(Entity member)
|
protected java.lang.Throwable
|
unwrapException(java.lang.Throwable e)
|
protected java.util.Map
|
waitForTasksOnEntityStart(java.util.Map tasks)
|
Methods inherited from class AbstractGroupImpl | |
---|---|
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() |
Constructor Detail |
---|
public DynamicClusterImpl()
public DynamicClusterImpl(java.util.Map properties, Entity parent)
properties
- The properties of the cluster (those corresponding to config keys will be
visible to created children by inheritance, but to set properties on children
explicitly, use the memberSpec or factory)parent
- the entity that owns this cluster (optional)
public DynamicClusterImpl(Entity parent)
public DynamicClusterImpl(java.util.Map properties)
Method Detail |
---|
protected Entity addNode()
protected boolean calculateServiceUp()
protected Entity createNode(java.util.Map flags)
protected void discardNode(Entity entity)
protected java.util.Map getCustomChildFlags()
protected EntityFactory getFactory()
protected EntitySpec getMemberSpec()
protected Function getRemovalStrategy()
protected Entity pickAndRemoveMember()
@Override public boolean removeChild(Entity child)
@Override public java.lang.String replaceMember(java.lang.String memberId)
@Override public java.lang.Integer resize(java.lang.Integer desiredSize)
@Override public void restart()
@Override public void setFactory(EntityFactory factory)
@Override public void setMemberSpec(EntitySpec memberSpec)
@Override public void setRemovalStrategy(Function val)
@Override public void setRemovalStrategy(groovy.lang.Closure val)
@Override public void start(java.util.Collection locs)
@Override public void stop()
protected void stopAndRemoveNode(Entity member)
protected java.lang.Throwable unwrapException(java.lang.Throwable e)
protected java.util.Map waitForTasksOnEntityStart(java.util.Map tasks)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.