org.openspaces.admin.pu.elastic.events
Class ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent
java.lang.Object
org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitProgressChangedEvent
org.openspaces.admin.internal.pu.elastic.events.AbstractElasticProcessingUnitDecisionEvent
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
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 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 |
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent
public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent()
- de-serialization constructor
ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent
public ElasticStatelessProcessingUnitPlannedNumberOfInstancesChangedEvent(int actualNumberOfInstances,
int oldPlannedNumberOfInstances,
int newPlannedNumberOfInstances)
- Parameters:
actualNumberOfInstances
- - number of instances currently deployedoldPlannedNumberOfInstances
- - planned number of instances before rule breachednewPlannedNumberOfInstances
- - 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 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.
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()
Copyright © GigaSpaces.