public abstract class AutoScalingThresholdBreachedException extends AutoScalingSlaEnforcementInProgressException implements SlaEnforcementDecision
Constructor and Description |
---|
AutoScalingThresholdBreachedException(String message,
ProcessingUnit pu,
CapacityRequirements actual,
CapacityRequirements newPlan,
long containerCapacityInMB,
AutomaticCapacityScaleRuleConfig rule,
boolean highThresholdBreached,
String metricValue) |
Modifier and Type | Method and Description |
---|---|
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) |
InternalElasticProcessingUnitDecisionEvent |
toEvent() |
fillInStackTrace, getProcessingUnitName
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProcessingUnitName
public AutoScalingThresholdBreachedException(String message, ProcessingUnit pu, CapacityRequirements actual, CapacityRequirements newPlan, long containerCapacityInMB, AutomaticCapacityScaleRuleConfig rule, boolean highThresholdBreached, String metricValue)
message
- - the exception specific messagepu
- - the processing unit being monitoredactual
- - the actual capacity currently deployednewPlan
- - the new planned capacity to be deployedrule
- - 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.public CapacityRequirements getNewCapacity()
public int hashCode()
hashCode
in class SlaEnforcementInProgressException
public boolean equals(Object obj)
SlaEnforcementDecision
equals
in interface SlaEnforcementDecision
equals
in class SlaEnforcementInProgressException
public void setOldPlan(CapacityRequirements oldPlan)
public InternalElasticProcessingUnitDecisionEvent toEvent()
toEvent
in interface SlaEnforcementDecision
Copyright © GigaSpaces.