Brooklyn

brooklyn.policy.autoscaling
[Java] Class AutoScalerPolicy

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

 
Field Summary
static BasicNotificationSensor POOL_COLD

static java.lang.String POOL_CURRENT_SIZE_KEY

static java.lang.String POOL_CURRENT_WORKRATE_KEY

static java.lang.String POOL_HIGH_THRESHOLD_KEY

static BasicNotificationSensor POOL_HOT

static java.lang.String POOL_LOW_THRESHOLD_KEY

static BasicNotificationSensor POOL_OK

 
Fields inherited from class AbstractPolicy
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()

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, isRunning, isSuspended, resume, 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

POOL_COLD

public static BasicNotificationSensor POOL_COLD


POOL_CURRENT_SIZE_KEY

public static final java.lang.String POOL_CURRENT_SIZE_KEY


POOL_CURRENT_WORKRATE_KEY

public static final java.lang.String POOL_CURRENT_WORKRATE_KEY


POOL_HIGH_THRESHOLD_KEY

public static final java.lang.String POOL_HIGH_THRESHOLD_KEY


POOL_HOT

public static BasicNotificationSensor POOL_HOT


POOL_LOW_THRESHOLD_KEY

public static final java.lang.String POOL_LOW_THRESHOLD_KEY


POOL_OK

public static BasicNotificationSensor POOL_OK


 
Method Detail

AutoScalerPolicy

public java.lang.Object AutoScalerPolicy()


AutoScalerPolicy

public java.lang.Object AutoScalerPolicy(java.util.Map props)


builder

public static AutoScalerPolicy.Builder builder()


resume

@Override
public void resume()


setEntity

@Override
public void setEntity(EntityLocal entity)


setMaxPoolSize

public void setMaxPoolSize(int val)


setMetricLowerBound

public void setMetricLowerBound(java.lang.Number val)


setMetricUpperBound

public void setMetricUpperBound(java.lang.Number val)


setMinPeriodBetweenExecs

public void setMinPeriodBetweenExecs(long val)


setMinPoolSize

public void setMinPoolSize(int val)


setResizeDownStabilizationDelay

public void setResizeDownStabilizationDelay(long val)


setResizeUpStabilizationDelay

public void setResizeUpStabilizationDelay(long val)


suspend

@Override
public void suspend()


toString

@Override
public java.lang.String toString()


 

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