org.openspaces.grid.gsm.autoscaling.exceptions
Class AutoScalingThresholdBreachedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementInProgressException
org.openspaces.grid.gsm.autoscaling.exceptions.AutoScalingSlaEnforcementInProgressException
org.openspaces.grid.gsm.autoscaling.exceptions.AutoScalingThresholdBreachedException
- All Implemented Interfaces:
- Serializable, SlaEnforcementDecision
- Direct Known Subclasses:
- AutoScalingHighThresholdBreachedException, AutoScalingLowThresholdBreachedException
public abstract class AutoScalingThresholdBreachedException
- extends AutoScalingSlaEnforcementInProgressException
- implements SlaEnforcementDecision
Base class for high/low threshold breached exceptions
- Since:
- 9.1.0
- Author:
- Itai Frenkel
- See Also:
- Serialized Form
AutoScalingThresholdBreachedException
public AutoScalingThresholdBreachedException(String message,
ProcessingUnit pu,
CapacityRequirements actual,
CapacityRequirements newPlan,
long containerCapacityInMB,
AutomaticCapacityScaleRuleConfig rule,
boolean highThresholdBreached,
String metricValue)
- Parameters:
message - - the exception specific messagepu - - the processing unit being monitoredactual - - the actual capacity currently deployednewPlan - - the new planned capacity to be deployedcontainerCapacityInMB - rule - - the rule whos threshold was breachedhighThresholdBreached - - true means high threshold breached, false means low threshold breachedmetricValue - - the metric value that breached the threshold as a string.
getNewCapacity
public CapacityRequirements getNewCapacity()
hashCode
public int hashCode()
- Overrides:
hashCode in class SlaEnforcementInProgressException
equals
public boolean equals(Object obj)
- Description copied from interface:
SlaEnforcementDecision
- Must implement the equals method since it is used to filter failure events
- Specified by:
equals in interface SlaEnforcementDecision- Overrides:
equals in class SlaEnforcementInProgressException
setOldPlan
public void setOldPlan(CapacityRequirements oldPlan)
toEvent
public org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitDecisionEvent toEvent()
- Specified by:
toEvent in interface SlaEnforcementDecision
Copyright © GigaSpaces.