public interface DynamicCluster extends AbstractGroup, Cluster, MemberReplaceable
Cluster
of entities that can dynamically increase or decrease the number of members.
When quarantine is enabled:
Group
for nodes that failed to start correctly.
Advanced users will wish to examine the configuration for the DynamicCluster.NodePlacementStrategy
and
DynamicCluster.ZoneFailureDetector
interfaces and their implementations, which are used here to control
the placement of nodes in particular availability zones and locations when the cluster is resized.
DynamicGroup
,
DynamicFabric
Modifier and Type | Interface and Description |
---|---|
static interface |
DynamicCluster.NodePlacementStrategy |
static interface |
DynamicCluster.ZoneFailureDetector |
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Startable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody
FIRST, FIRST_MEMBER, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECK
GROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVED
INITIAL_SIZE
RESTART, SERVICE_UP, START, STOP
REPLACE_MEMBER
Modifier and Type | Method and Description |
---|---|
Entity |
addNode(Location loc,
java.util.Map<?,?> extraFlags) |
java.util.Collection<Entity> |
resizeByDelta(int delta)
Changes the cluster size by the given number.
|
void |
setFactory(EntityFactory<?> factory)
Deprecated.
since 0.7.0; use
setMemberSpec(EntitySpec) |
void |
setMemberSpec(EntitySpec<?> memberSpec) |
void |
setRemovalStrategy(com.google.common.base.Function<java.util.Collection<Entity>,Entity> val) |
void |
setZoneFailureDetector(DynamicCluster.ZoneFailureDetector val) |
void |
setZonePlacementStrategy(DynamicCluster.NodePlacementStrategy val) |
setMembers, setMembers
addChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMember
addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, addTag, clearParent, containsTag, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, getTags, invoke, removeChild, removeEnricher, removeGroup, removePolicy, removeTag, setParent
getCatalogItemId, getTagSupport, tags
config, setConfig
getCurrentSize, resize
replaceMember
static final MethodEffector<java.util.Collection<Entity>> RESIZE_BY_DELTA
static final ConfigKey<java.lang.Boolean> QUARANTINE_FAILED_ENTITIES
static final AttributeSensor<Lifecycle> SERVICE_STATE_ACTUAL
static final BasicNotificationSensor<Entity> ENTITY_QUARANTINED
static final AttributeSensor<QuarantineGroup> QUARANTINE_GROUP
static final ConfigKey<java.lang.Integer> INITIAL_QUORUM_SIZE
static final ConfigKey<EntitySpec<?>> MEMBER_SPEC
static final ConfigKey<EntitySpec<?>> FIRST_MEMBER_SPEC
@Deprecated static final ConfigKey<EntityFactory> FACTORY
MEMBER_SPEC
instead.static final ConfigKey<com.google.common.base.Function<java.util.Collection<Entity>,Entity>> REMOVAL_STRATEGY
static final ConfigKey<java.util.Map> CUSTOM_CHILD_FLAGS
static final ConfigKey<java.lang.Boolean> ENABLE_AVAILABILITY_ZONES
static final ConfigKey<DynamicCluster.ZoneFailureDetector> ZONE_FAILURE_DETECTOR
static final ConfigKey<DynamicCluster.NodePlacementStrategy> ZONE_PLACEMENT_STRATEGY
static final ConfigKey<java.util.Collection<java.lang.String>> AVAILABILITY_ZONE_NAMES
static final ConfigKey<java.lang.Integer> NUM_AVAILABILITY_ZONES
static final AttributeSensor<java.util.List<Location>> SUB_LOCATIONS
static final AttributeSensor<java.util.Set<Location>> FAILED_SUB_LOCATIONS
static final AttributeSensor<java.lang.Boolean> CLUSTER_MEMBER
static final AttributeSensor<Entity> CLUSTER
java.util.Collection<Entity> resizeByDelta(int delta)
delta
- number of nodes to add or remove#grow(int)
void setRemovalStrategy(com.google.common.base.Function<java.util.Collection<Entity>,Entity> val)
void setZonePlacementStrategy(DynamicCluster.NodePlacementStrategy val)
void setZoneFailureDetector(DynamicCluster.ZoneFailureDetector val)
void setMemberSpec(EntitySpec<?> memberSpec)
@Deprecated void setFactory(EntityFactory<?> factory)
setMemberSpec(EntitySpec)