public interface ServerPool extends DynamicCluster, LocationOwner<ServerPoolLocation,ServerPool>
INBOUND_PORTS
config key as part of the pool's
PROVISIONING_PROPERTIES.
For example, in YAML:
- type: org.apache.brooklyn.entity.machine.pool.ServerPool
brooklyn.config:
# Suitable for TomcatServers
provisioning.properties:
inboundPorts: [22, 31880, 8443, 8080, 31001, 1099]
This is a limitation of Brooklyn that will be addressed in a future release.
DynamicCluster.NodePlacementStrategy, DynamicCluster.ZoneFailureDetectorEntity.AdjunctSupport<T extends EntityAdjunct>, Entity.EnricherSupport, Entity.GroupSupport, Entity.PolicySupport, Entity.SensorSupportBrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupportConfigurable.ConfigurationSupportStartable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBodyResizable.InsufficientCapacityException| Modifier and Type | Field and Description |
|---|---|
static MethodEffector<java.util.Collection<Entity>> |
ADD_MACHINES_FROM_SPEC |
static AttributeSensor<java.lang.Integer> |
AVAILABLE_COUNT |
static AttributeSensor<java.lang.Integer> |
CLAIMED_COUNT |
static ConfigKey<java.lang.Integer> |
INITIAL_SIZE |
static ConfigKey<java.lang.String> |
LOCATION_NAME_PREFIX |
static ConfigKey<EntitySpec<?>> |
MEMBER_SPEC |
AVAILABILITY_ZONE_NAMES, CLUSTER, CLUSTER_MEMBER, CLUSTER_MEMBER_ID, CLUSTER_ONE_AND_ALL_MEMBERS_UP, CUSTOM_CHILD_FLAGS, ENABLE_AVAILABILITY_ZONES, ENTITY_QUARANTINED, FACTORY, FAILED_SUB_LOCATIONS, FIRST_MEMBER_SPEC, INITIAL_QUORUM_SIZE, NUM_AVAILABILITY_ZONES, QUARANTINE_FAILED_ENTITIES, QUARANTINE_FILTER, QUARANTINE_GROUP, REMOVAL_STRATEGY, RESIZE_BY_DELTA, RESTART_MODE, SERVICE_STATE_ACTUAL, SUB_LOCATIONS, ZONE_FAILURE_DETECTOR, ZONE_PLACEMENT_STRATEGYFIRST, FIRST_MEMBER, GROUP_MEMBERS, MEMBER_DELEGATE_CHILDREN, MEMBER_DELEGATE_NAME_FORMAT, RUNNING_QUORUM_CHECK, UP_QUORUM_CHECKGROUP_SIZE, MEMBER_ADDED, MEMBER_REMOVEDRESTART, SERVICE_UP, START, STOPREPLACE_MEMBERDYNAMIC_LOCATION, DYNAMIC_LOCATION_STATUS, LOCATION_FLAGS, LOCATION_NAME, LOCATION_NAME_SUFFIX, LOCATION_SPEC| Modifier and Type | Method and Description |
|---|---|
Entity |
addExistingMachine(MachineLocation machine)
Sets the pool to use an existing
MachineLocation as a member. |
java.util.Collection<Entity> |
addExistingMachinesFromSpec(java.lang.String spec)
Adds additional machines to the pool by resolving the given spec.
|
MachineLocation |
claimMachine(java.util.Map<?,?> flags) |
void |
releaseMachine(MachineLocation machine) |
addNode, resizeByDelta, setFactory, setMemberSpec, setRemovalStrategy, setZoneFailureDetector, setZonePlacementStrategysetMembers, setMembersaddChild, addChild, addMember, addMemberChild, addMemberChild, getCurrentSize, getMembers, hasMember, removeMemberaddEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getConfigRaw, getConfigRaw, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, subscriptions, tagsconfig, getConfig, setConfigrestart, start, stopgetCurrentSize, resizereplaceMembercreateLocation, deleteLocation, getDynamicLocation, isLocationAvailablestatic final ConfigKey<java.lang.String> LOCATION_NAME_PREFIX
static final ConfigKey<java.lang.Integer> INITIAL_SIZE
static final AttributeSensor<java.lang.Integer> AVAILABLE_COUNT
static final AttributeSensor<java.lang.Integer> CLAIMED_COUNT
static final ConfigKey<EntitySpec<?>> MEMBER_SPEC
static final MethodEffector<java.util.Collection<Entity>> ADD_MACHINES_FROM_SPEC
MachineLocation claimMachine(java.util.Map<?,?> flags) throws NoMachinesAvailableException
NoMachinesAvailableExceptionvoid releaseMachine(MachineLocation machine)
Entity addExistingMachine(MachineLocation machine)
MachineLocation as a member. Existing locations
will count towards the capacity of the pool but will not be terminated when the pool is
stopped.machine - An existing machine.MEMBER_SPEC.java.util.Collection<Entity> addExistingMachinesFromSpec(java.lang.String spec)
spec - A location spec, e.g. byon:(hosts="user@10.9.1.1,user@10.9.1.2,user@10.9.1.3")MEMBER_SPEC.