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(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.
|
public void setCooldownAfterInstanceRemoved(long period, TimeUnit timeUnit)
public void setCooldownAfterInstanceAdded(long period, TimeUnit timeUnit)
public void setProcessingUnit(org.openspaces.admin.internal.pu.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.