GigaSpaces XAP 9.7.2 API

org.openspaces.admin.pu.elastic.config
Class AutomaticCapacityScaleRuleConfig

java.lang.Object
  extended by org.openspaces.admin.pu.elastic.config.AutomaticCapacityScaleRuleConfig
All Implemented Interfaces:
Externalizable, Serializable

public class AutomaticCapacityScaleRuleConfig
extends Object
implements Externalizable

Configures an automatic scaling rule based on a monitored statistics and thresholds.

Since:
9.0.0
Author:
itaif
See Also:
AutomaticCapacityScaleConfig, AutomaticCapacityScaleRuleConfigurer, Serialized Form

Constructor Summary
AutomaticCapacityScaleRuleConfig()
           
AutomaticCapacityScaleRuleConfig(Map<String,String> properties)
           
 
Method Summary
 boolean equals(Object obj)
           
 Comparable<?> getHighThreshold()
           
 CapacityRequirementsConfig getHighThresholdBreachedIncrease()
           
 Comparable<?> getLowThreshold()
           
 CapacityRequirementsConfig getLowThresholdBreachedDecrease()
           
 Map<String,String> getProperties()
           
 ProcessingUnitStatisticsId getStatistics()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 void setHighThreshold(Comparable<?> highThreshold)
          Defines a high threshold that triggers an increase or decrease of capacity
 void setHighThresholdBreachedIncrease(CapacityRequirementsConfig capacityRequirementsConfig)
          Defined Capacity Requirements that will be added once the high threshold is breached
 void setLowThreshold(Comparable<?> lowThreshold)
          Defines a low threshold that triggers an increase or decrease of capacity
 void setLowThresholdBreachedDecrease(CapacityRequirementsConfig capacityRequirementsConfig)
          Defined Capacity Requirements that will be decreases once the low threshold is breached
 void setStatistics(ProcessingUnitStatisticsId statisticsId)
          Defines the statistics that is compared against the high and low thresholds
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutomaticCapacityScaleRuleConfig

public AutomaticCapacityScaleRuleConfig()

AutomaticCapacityScaleRuleConfig

public AutomaticCapacityScaleRuleConfig(Map<String,String> properties)
Method Detail

setStatistics

public void setStatistics(ProcessingUnitStatisticsId statisticsId)
Defines the statistics that is compared against the high and low thresholds


getStatistics

public ProcessingUnitStatisticsId getStatistics()

setLowThreshold

public void setLowThreshold(Comparable<?> lowThreshold)
Defines a low threshold that triggers an increase or decrease of capacity

Parameters:
lowThreshold - - An Object of a Class that implements Comparable and has a constructor accepting a String as a single argument.
See Also:
setLowThresholdBreachedDecrease(CapacityRequirementsConfig)

getLowThreshold

public Comparable<?> getLowThreshold()

setHighThreshold

public void setHighThreshold(Comparable<?> highThreshold)
Defines a high threshold that triggers an increase or decrease of capacity

Parameters:
highThreshold - - An Object of a Class that implements Comparable and has a constructor accepting a String as a single argument.
See Also:
setHighThresholdBreachedIncrease(CapacityRequirementsConfig)

getHighThreshold

public Comparable<?> getHighThreshold()

setHighThresholdBreachedIncrease

public void setHighThresholdBreachedIncrease(CapacityRequirementsConfig capacityRequirementsConfig)
Defined Capacity Requirements that will be added once the high threshold is breached

Parameters:
capacityRequirementsConfig - - An Object of a CapacityRequirementsConfig that defines capacity properties

getHighThresholdBreachedIncrease

public CapacityRequirementsConfig getHighThresholdBreachedIncrease()

setLowThresholdBreachedDecrease

public void setLowThresholdBreachedDecrease(CapacityRequirementsConfig capacityRequirementsConfig)
Defined Capacity Requirements that will be decreases once the low threshold is breached

Parameters:
capacityRequirementsConfig - - An Object of a CapacityRequirementsConfig that defines capacity properties

getLowThresholdBreachedDecrease

public CapacityRequirementsConfig getLowThresholdBreachedDecrease()

getProperties

public Map<String,String> getProperties()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.