GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.autoscaling
Class AutomaticCapacityCooldownValidator

java.lang.Object
  extended by 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

Constructor Summary
AutomaticCapacityCooldownValidator()
           
 
Method Summary
 void setCooldownAfterInstanceAdded(long period, TimeUnit timeUnit)
           
 void setCooldownAfterInstanceRemoved(long period, TimeUnit timeUnit)
           
 void setProcessingUnit(org.openspaces.admin.internal.pu.InternalProcessingUnit processingUnit)
           
 void validate()
          Raises exception if cooldown period is active.
 void validate(DeploymentStatus deploymentStatus, Set<String> existingInstancesUids, long currentTimeMillis)
          Raises exception if cooldown period is active.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutomaticCapacityCooldownValidator

public AutomaticCapacityCooldownValidator()
Method Detail

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 UIDs
currentTimeMillis - - current time in milliseconds
Throws:
AutoScalingTemporarilyDisabledCooldownException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.