|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
brooklyn.entity.Entitybrooklyn.entity.trait.Resizable
brooklyn.entity.Group
brooklyn.entity.trait.Changeable
brooklyn.entity.trait.Startable
brooklyn.entity.group.DynamicCluster
brooklyn.entity.basic.AbstractGroup
brooklyn.entity.rebind.Rebindable
brooklyn.entity.group.Cluster
@ImplementedBy(DynamicClusterImpl.class) public interface DynamicCluster extends AbstractGroup, Cluster
A cluster of entities that can dynamically increase or decrease the number of entities.
| Field Summary | |
|---|---|
static BasicNotificationSensor |
ENTITY_QUARANTINED
|
static ConfigKey |
FACTORY
|
static ConfigKey |
MEMBER_SPEC
|
static ConfigKey |
QUARANTINE_FAILED_ENTITIES
|
static AttributeSensor |
QUARANTINE_GROUP
|
static ConfigKey |
REMOVAL_STRATEGY
|
static Effector |
REPLACE_MEMBER
|
static BasicAttributeSensor |
SERVICE_STATE
|
| Fields inherited from interface Cluster | |
|---|---|
| INITIAL_SIZE |
| Fields inherited from interface Resizable | |
|---|---|
| RESIZE |
| Fields inherited from interface Startable | |
|---|---|
| RESTART, SERVICE_UP, START, STOP |
| Method Summary | |
|---|---|
java.lang.String
|
replaceMember(java.lang.String memberId)
@param memberId |
void
|
setFactory(EntityFactory factory)
|
void
|
setMemberSpec(EntitySpec memberSpec)
|
void
|
setRemovalStrategy(Function val)
|
void
|
setRemovalStrategy(groovy.lang.Closure val)
|
| Methods inherited from interface AbstractGroup | |
|---|---|
| setMembers, setMembers |
| Methods inherited from interface Resizable | |
|---|---|
| getCurrentSize, resize |
| Methods inherited from interface Startable | |
|---|---|
| restart, start, stop |
| Field Detail |
|---|
public static final BasicNotificationSensor ENTITY_QUARANTINED
@SetFromFlag("factory")
public static final ConfigKey FACTORY
@SetFromFlag("memberSpec")
public static final ConfigKey MEMBER_SPEC
@SetFromFlag("quarantineFailedEntities")
public static final ConfigKey QUARANTINE_FAILED_ENTITIES
public static final AttributeSensor QUARANTINE_GROUP
@SetFromFlag("removalStrategy")
public static final ConfigKey REMOVAL_STRATEGY
public static final Effector REPLACE_MEMBER
public static final BasicAttributeSensor SERVICE_STATE
| Method Detail |
|---|
@Description("Replaces the entity with the given ID, if it is a member; first adds a new member, then removes this one. "+
"Returns id of the new entity; or throws exception if couldn't be replaced.")
public java.lang.String replaceMember(@NamedParameter("memberId") @Description("The entity id of a member to be replaced") java.lang.String memberId)
public void setFactory(EntityFactory factory)
public void setMemberSpec(EntitySpec memberSpec)
public void setRemovalStrategy(Function val)
public void setRemovalStrategy(groovy.lang.Closure val)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.