public class AutomaticCapacityCooldownValidator extends Object
Constructor and Description |
---|
AutomaticCapacityCooldownValidator() |
Modifier and Type | Method and Description |
---|---|
void |
setCooldownAfterInstanceAdded(long period,
TimeUnit timeUnit) |
void |
setCooldownAfterInstanceRemoved(long period,
TimeUnit timeUnit) |
void |
setProcessingUnit(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.
|
public void setCooldownAfterInstanceRemoved(long period, TimeUnit timeUnit)
public void setCooldownAfterInstanceAdded(long period, TimeUnit timeUnit)
public void setProcessingUnit(InternalProcessingUnit processingUnit)
public void validate() throws AutoScalingTemporarilyDisabledCooldownException
public void validate(DeploymentStatus deploymentStatus, Set<String> existingInstancesUids, long currentTimeMillis) throws AutoScalingTemporarilyDisabledCooldownException
existingInstancesUids
- - set of discovered processing unit instance UIDscurrentTimeMillis
- - current time in millisecondsAutoScalingTemporarilyDisabledCooldownException
Copyright © GigaSpaces.