public class ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent extends 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) |
toStringgetGridServiceAgentZones, getProcessingUnitName, isComplete, isUndeploying, setComplete, setGridServiceAgentZones, setProcessingUnitName, setUndeploying, toStringHelperclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisComplete, isUndeployinggetGridServiceAgentZones, getProcessingUnitNamesetComplete, setUndeployingsetGridServiceAgentZones, setProcessingUnitNamepublic 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 ExternalizablewriteExternal in class AbstractElasticProcessingUnitProgressChangedEventIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AbstractElasticProcessingUnitProgressChangedEventIOExceptionClassNotFoundExceptionpublic String getDecisionDescription()
AbstractElasticProcessingUnitDecisionEventgetDecisionDescription in interface ElasticProcessingUnitDecisionEventgetDecisionDescription in class AbstractElasticProcessingUnitDecisionEventpublic AutomaticCapacityScaleRuleConfig getRule()
public boolean isHighThresholdBreached()
public boolean isLowThresholdBreached()
public String getMetricValue()
Copyright © GigaSpaces.