Brooklyn

brooklyn.entity.group
[Java] Interface DynamicCluster

brooklyn.entity.Entity
  brooklyn.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
All Superinterfaces:
Entity, Resizable, Group, Changeable, Startable, AbstractGroup, Rebindable, 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

ENTITY_QUARANTINED

public static final BasicNotificationSensor ENTITY_QUARANTINED


FACTORY

@SetFromFlag("factory")
public static final ConfigKey FACTORY


MEMBER_SPEC

@SetFromFlag("memberSpec")
public static final ConfigKey MEMBER_SPEC


QUARANTINE_FAILED_ENTITIES

@SetFromFlag("quarantineFailedEntities")
public static final ConfigKey QUARANTINE_FAILED_ENTITIES


QUARANTINE_GROUP

public static final AttributeSensor QUARANTINE_GROUP


REMOVAL_STRATEGY

@SetFromFlag("removalStrategy")
public static final ConfigKey REMOVAL_STRATEGY


REPLACE_MEMBER

public static final Effector REPLACE_MEMBER


SERVICE_STATE

public static final BasicAttributeSensor SERVICE_STATE


 
Method Detail

replaceMember

@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)
throws:
NoSuchElementException If entity cannot be resolved, or it is not a member
Parameters:
memberId


setFactory

public void setFactory(EntityFactory factory)


setMemberSpec

public void setMemberSpec(EntitySpec memberSpec)


setRemovalStrategy

public void setRemovalStrategy(Function val)


setRemovalStrategy

public void setRemovalStrategy(groovy.lang.Closure val)


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.