public class ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent extends org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent implements ElasticAutoScalingProgressChangedEvent
Constructor and Description |
---|
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent()
de-serialization constructor
|
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances,
int oldPlannedNumberOfInstances,
int newPlannedNumberOfInstances) |
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances,
int oldPlannedNumberOfInstances,
int newPlannedNumberOfInstances,
AutomaticCapacityScaleRuleConfig rule,
boolean highThresholdBreached,
String metricValue) |
Modifier and Type | Method and Description |
---|---|
int |
getBeforePlannedNumberOfInstances() |
String |
getDecisionDescription()
Each decision event instance has the same (parameterized) description as other event instances with the same type.
|
String |
getMetricValue() |
int |
getNewPlannedNumberOfInstances() |
AutomaticCapacityScaleRuleConfig |
getRule() |
boolean |
isHighThresholdBreached() |
boolean |
isLowThresholdBreached() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
toString
getGridServiceAgentZones, getProcessingUnitName, isComplete, isUndeploying, setComplete, setGridServiceAgentZones, setProcessingUnitName, setUndeploying, toStringHelper
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isComplete, isUndeploying
getGridServiceAgentZones, getProcessingUnitName
public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent()
public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances, int oldPlannedNumberOfInstances, int newPlannedNumberOfInstances)
actualNumberOfInstances
- - number of instances currently deployedoldPlannedNumberOfInstances
- - planned number of instances before rule breachednewPlannedNumberOfInstances
- - planned number of instances after rule breachedpublic ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances, int oldPlannedNumberOfInstances, int newPlannedNumberOfInstances, AutomaticCapacityScaleRuleConfig rule, boolean highThresholdBreached, String metricValue)
actualNumberOfInstances
- - number of instances currently deployedoldPlannedNumberOfInstances
- - planned number of instances before rule breachednewPlannedNumberOfInstances
- - planned number of instances after rule breachedrule
- - the rule that was breachedhighThresholdBreached
- - true means high threshold breached, false means low threshold breachedmetricValue
- - the metric value that breached the threshold as a string.public int getNewPlannedNumberOfInstances()
public int getBeforePlannedNumberOfInstances()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
IOException
ClassNotFoundException
public String getDecisionDescription()
org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
getDecisionDescription
in interface ElasticProcessingUnitDecisionEvent
getDecisionDescription
in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
public AutomaticCapacityScaleRuleConfig getRule()
public boolean isHighThresholdBreached()
public boolean isLowThresholdBreached()
public String getMetricValue()
Copyright © GigaSpaces.