|
Brooklyn | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object brooklyn.policy.basic.AbstractEntityAdjunct brooklyn.policy.basic.AbstractPolicy brooklyn.policy.autoscaling.AutoScalerPolicy
@SuppressWarnings({"rawtypes", "unchecked"}) public class AutoScalerPolicy extends AbstractPolicy
Policy that is attached to a Resizable entity and dynamically adjusts its size in response to emitted POOL_COLD and POOL_HOT events. (This policy does not itself determine whether the pool is hot or cold, but instead relies on these events being emitted by the monitored entity itself, or by another policy that is attached to it; see, for example, LoadBalancingPolicy.)
Nested Class Summary | |
---|---|
static class |
AutoScalerPolicy.Builder
|
Fields inherited from class AbstractPolicy | |
---|---|
configsInternal, execution, leftoverProperties, policyStatus, suspended |
Fields inherited from class AbstractEntityAdjunct | |
---|---|
_subscriptionTracker, entity, id, name |
Method Summary | |
---|---|
java.lang.Object
|
AutoScalerPolicy()
|
java.lang.Object
|
AutoScalerPolicy(java.util.Map props)
|
static AutoScalerPolicy.Builder
|
builder()
|
protected void
|
doReconfigureConfig(ConfigKey key, java.lang.Object val)
|
void
|
resume()
|
void
|
setEntity(EntityLocal entity)
|
void
|
setMaxPoolSize(int val)
|
void
|
setMetricLowerBound(java.lang.Number val)
|
void
|
setMetricUpperBound(java.lang.Number val)
|
void
|
setMinPeriodBetweenExecs(long val)
|
void
|
setMinPoolSize(int val)
|
void
|
setResizeDownStabilizationDelay(long val)
|
void
|
setResizeUpStabilizationDelay(long val)
|
void
|
suspend()
|
java.lang.String
|
toString()
|
Methods inherited from class AbstractPolicy | |
---|---|
configure, configure, destroy, doReconfigureConfig, getAllConfig, getConfig, getConfigMap, getPolicyType, getRebindSupport, isRunning, isSuspended, resume, setConfig, suspend, toString |
Methods inherited from class AbstractEntityAdjunct | |
---|---|
check, destroy, getAllSubscriptions, getId, getManagementContext, getName, getSubscriptionTracker, isDestroyed, isRunning, setEntity, setId, setName, subscribe, subscribeToChildren, subscribeToMembers, unsubscribe, unsubscribe |
Field Detail |
---|
@SetFromFlag("currentSizeOperator") public static final ConfigKey CURRENT_SIZE_OPERATOR
public static BasicNotificationSensor DEFAULT_MAX_SIZE_REACHED_SENSOR
public static BasicNotificationSensor DEFAULT_POOL_COLD_SENSOR
public static BasicNotificationSensor DEFAULT_POOL_HOT_SENSOR
public static BasicNotificationSensor DEFAULT_POOL_OK_SENSOR
@SetFromFlag("entityWithMetric") public static final ConfigKey ENTITY_WITH_METRIC
@SetFromFlag("maxPoolSize") public static final ConfigKey MAX_POOL_SIZE
@SetFromFlag("maxReachedNotificationDelay") public static final ConfigKey MAX_REACHED_NOTIFICATION_DELAY
@SetFromFlag("maxSizeReachedSensor") public static final ConfigKey MAX_SIZE_REACHED_SENSOR
@SetFromFlag("metric") public static final ConfigKey METRIC
@SetFromFlag("metricLowerBound") public static final ConfigKey METRIC_LOWER_BOUND
@SetFromFlag("metricUpperBound") public static final ConfigKey METRIC_UPPER_BOUND
@SetFromFlag("minPeriodBetweenExecs") public static final ConfigKey MIN_PERIOD_BETWEEN_EXECS
@SetFromFlag("minPoolSize") public static final ConfigKey MIN_POOL_SIZE
@SetFromFlag("poolColdSensor") public static final ConfigKey POOL_COLD_SENSOR
public static final java.lang.String POOL_CURRENT_SIZE_KEY
public static final java.lang.String POOL_CURRENT_WORKRATE_KEY
public static final java.lang.String POOL_HIGH_THRESHOLD_KEY
@SetFromFlag("poolHotSensor") public static final ConfigKey POOL_HOT_SENSOR
public static final java.lang.String POOL_LOW_THRESHOLD_KEY
@SetFromFlag("poolOkSensor") public static final ConfigKey POOL_OK_SENSOR
@SetFromFlag("resizeDownStabilizationDelay") public static final ConfigKey RESIZE_DOWN_STABILIZATION_DELAY
@SetFromFlag("resizeOperator") public static final ConfigKey RESIZE_OPERATOR
@SetFromFlag("resizeUpStabilizationDelay") public static final ConfigKey RESIZE_UP_STABILIZATION_DELAY
Method Detail |
---|
public java.lang.Object AutoScalerPolicy()
public java.lang.Object AutoScalerPolicy(java.util.Map props)
public static AutoScalerPolicy.Builder builder()
@Override protected void doReconfigureConfig(ConfigKey key, java.lang.Object val)
@Override public void resume()
@Override public void setEntity(EntityLocal entity)
public void setMaxPoolSize(int val)
public void setMetricLowerBound(java.lang.Number val)
public void setMetricUpperBound(java.lang.Number val)
public void setMinPeriodBetweenExecs(long val)
public void setMinPoolSize(int val)
public void setResizeDownStabilizationDelay(long val)
public void setResizeUpStabilizationDelay(long val)
@Override public void suspend()
@Override public java.lang.String toString()
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.