GigaSpaces XAP 9.7.2 API

org.openspaces.grid.gsm.autoscaling.exceptions
Class AutoScalingThresholdBreachedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementInProgressException
              extended by org.openspaces.grid.gsm.autoscaling.exceptions.AutoScalingSlaEnforcementInProgressException
                  extended by 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

Constructor Summary
AutoScalingThresholdBreachedException(String message, ProcessingUnit pu, CapacityRequirements actual, CapacityRequirements newPlan, long containerCapacityInMB, AutomaticCapacityScaleRuleConfig rule, boolean highThresholdBreached, String metricValue)
           
 
Method Summary
 boolean equals(Object obj)
          Must implement the equals method since it is used to filter failure events
 CapacityRequirements getNewCapacity()
           
 int hashCode()
           
 void setOldPlan(CapacityRequirements oldPlan)
           
 org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitDecisionEvent toEvent()
           
 
Methods inherited from class org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementInProgressException
fillInStackTrace, getProcessingUnitName
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.grid.gsm.sla.exceptions.SlaEnforcementDecision
getProcessingUnitName
 

Constructor Detail

AutoScalingThresholdBreachedException

public AutoScalingThresholdBreachedException(String message,
                                             ProcessingUnit pu,
                                             CapacityRequirements actual,
                                             CapacityRequirements newPlan,
                                             long containerCapacityInMB,
                                             AutomaticCapacityScaleRuleConfig rule,
                                             boolean highThresholdBreached,
                                             String metricValue)
Parameters:
message - - the exception specific message
pu - - the processing unit being monitored
actual - - the actual capacity currently deployed
newPlan - - the new planned capacity to be deployed
containerCapacityInMB -
rule - - the rule whos threshold was breached
highThresholdBreached - - true means high threshold breached, false means low threshold breached
metricValue - - the metric value that breached the threshold as a string.
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.