GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.events
Class ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent

java.lang.Object
  extended by org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
      extended by org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
          extended by org.openspaces.admin.pu.elastic.events.ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent
All Implemented Interfaces:
Externalizable, Serializable, org.jini.rio.monitor.event.Event, org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitDecisionEvent, org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitEvent, org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitProgressChangedEvent, ElasticAutoScalingProgressChangedEvent, ElasticProcessingUnitDecisionEvent, ElasticProcessingUnitEvent, ElasticProcessingUnitProgressChangedEvent

public class ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent
extends org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
implements ElasticAutoScalingProgressChangedEvent

Since:
9.1.0
Author:
Itai Frenkel
See Also:
Serialized Form

Constructor Summary
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent()
          de-serialization constructor
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances, int oldPlannedNumberOfInstances, int newPlannedNumberOfInstances)
           
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances, int oldPlannedNumberOfInstances, int newPlannedNumberOfInstances, AutomaticCapacityScaleRuleConfig rule, boolean highThresholdBreached, String metricValue)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
toString
 
Methods inherited from class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
getGridServiceAgentZones, getProcessingUnitName, isComplete, isUndeploying, setComplete, setGridServiceAgentZones, setProcessingUnitName, setUndeploying, toStringHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openspaces.admin.pu.elastic.events.ElasticProcessingUnitProgressChangedEvent
isComplete, isUndeploying
 
Methods inherited from interface org.openspaces.admin.pu.elastic.events.ElasticProcessingUnitEvent
getGridServiceAgentZones, getProcessingUnitName
 
Methods inherited from interface org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitProgressChangedEvent
setComplete, setUndeploying
 
Methods inherited from interface org.openspaces.admin.internal.pu.elastic.events.InternalElasticProcessingUnitEvent
setGridServiceAgentZones, setProcessingUnitName
 

Constructor Detail

ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent

public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent()
de-serialization constructor


ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent

public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances,
                                                                          int oldPlannedNumberOfInstances,
                                                                          int newPlannedNumberOfInstances)
Parameters:
actualNumberOfInstances - - number of instances currently deployed
oldPlannedNumberOfInstances - - planned number of instances before rule breached
newPlannedNumberOfInstances - - planned number of instances after rule breached

ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent

public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances,
                                                                          int oldPlannedNumberOfInstances,
                                                                          int newPlannedNumberOfInstances,
                                                                          AutomaticCapacityScaleRuleConfig rule,
                                                                          boolean highThresholdBreached,
                                                                          String metricValue)
Parameters:
actualNumberOfInstances - - number of instances currently deployed
oldPlannedNumberOfInstances - - planned number of instances before rule breached
newPlannedNumberOfInstances - - planned number of instances after rule breached
rule - - the rule that 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

getNewPlannedNumberOfInstances

public int getNewPlannedNumberOfInstances()

getBeforePlannedNumberOfInstances

public int getBeforePlannedNumberOfInstances()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
Throws:
IOException
ClassNotFoundException

getDecisionDescription

public String getDecisionDescription()
Description copied from class: org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
Each decision event instance has the same (parameterized) description as other event instances with the same type.

Specified by:
getDecisionDescription in interface ElasticProcessingUnitDecisionEvent
Specified by:
getDecisionDescription in class org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent

getRule

public AutomaticCapacityScaleRuleConfig getRule()

isHighThresholdBreached

public boolean isHighThresholdBreached()

isLowThresholdBreached

public boolean isLowThresholdBreached()

getMetricValue

public String getMetricValue()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.