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