org.openspaces.grid.gsm.autoscaling
Class AutomaticCapacityCooldownValidator
java.lang.Object
org.openspaces.grid.gsm.autoscaling.AutomaticCapacityCooldownValidator
public class AutomaticCapacityCooldownValidator
- extends Object
Validates the cooldown period of auto-scaling rules.
If an instance was added the increase cooldown period is in place
If an instance was removed the decrease cooldown period is in place
- Since:
- 9.0.0
- Author:
- itaif
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutomaticCapacityCooldownValidator
public AutomaticCapacityCooldownValidator()
setCooldownAfterInstanceRemoved
public void setCooldownAfterInstanceRemoved(long period,
TimeUnit timeUnit)
setCooldownAfterInstanceAdded
public void setCooldownAfterInstanceAdded(long period,
TimeUnit timeUnit)
setProcessingUnit
public void setProcessingUnit(org.openspaces.admin.internal.pu.InternalProcessingUnit processingUnit)
validate
public void validate()
throws AutoScalingTemporarilyDisabledCooldownException
- Raises exception if cooldown period is active.
Cooldown is active if an instance was removed or added
and the preconfigured cooldown period has not passed since.
- Throws:
AutoScalingTemporarilyDisabledCooldownException
validate
public void validate(DeploymentStatus deploymentStatus,
Set<String> existingInstancesUids,
long currentTimeMillis)
throws AutoScalingTemporarilyDisabledCooldownException
- Raises exception if cooldown period is active.
Cooldown is active if an instance was removed or added
and the preconfigured cooldown period has not passed since.
- Parameters:
existingInstancesUids
- - set of discovered processing unit instance UIDscurrentTimeMillis
- - current time in milliseconds
- Throws:
AutoScalingTemporarilyDisabledCooldownException
Copyright © GigaSpaces.