|
GigaSpaces XAP 9.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openspaces.admin.pu.elastic.config.AutomaticCapacityScaleConfig
public class AutomaticCapacityScaleConfig
Defines an automatic scaling strategy that increases and decreases capacity. The trigger is when a monitored values crosses a threshold
AutomaticCapacityScaleConfigurer
,
Serialized FormConstructor Summary | |
---|---|
AutomaticCapacityScaleConfig()
Default constructor |
|
AutomaticCapacityScaleConfig(Map<String,String> properties)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getBeanClassName()
The Bean implementation class name corresponding to this BeanConfig. |
long |
getCooldownAfterScaleOutSeconds()
|
long |
getCooldownAfterScaleSeconds()
|
CapacityRequirementsConfig |
getInitialCapacity()
|
CapacityRequirementsConfig |
getMaxCapacity()
|
int |
getMaxConcurrentRelocationsPerMachine()
|
CapacityRequirementsConfig |
getMinCapacity()
|
int |
getPollingIntervalSeconds()
|
Map<String,String> |
getProperties()
Get the String key-value pairs properties used to configure this bean. |
AutomaticCapacityScaleRuleConfig[] |
getRules()
|
long |
getStatisticsPollingIntervalSeconds()
|
int |
hashCode()
|
boolean |
isAtMostOneContainerPerMachine()
|
void |
readExternal(ObjectInput in)
|
void |
setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
When set to true, at most one Grid Service Container for this Processing Unit is started per machine. |
void |
setCooldownAfterScaleOutSeconds(long cooldownAfterInstanceAddedSeconds)
Sets the number of seconds after a ProcessingUnitInstance is added and the
ProcessingUnit.getStatus() is DeploymentStatus.INTACT that all
scaling rules are disabled. |
void |
setCooldownAfterScaleSeconds(long cooldownAfterInstanceRemovedSeconds)
Sets the number of seconds after a ProcessingUnitInstance is removed and the
ProcessingUnit.getStatus() is DeploymentStatus.INTACT that all
scaling rules are disabled. |
void |
setInitialCapacity(CapacityRequirementsConfig initialCapacity)
|
void |
setMaxCapacity(CapacityRequirementsConfig maxCapacity)
Sets the maximum scale capacity that the @{link ProcessingUnit
is deployed with. |
void |
setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Specifies the number of processing unit instance relocations each machine can handle concurrently. |
void |
setMinCapacity(CapacityRequirementsConfig minCapacity)
Sets the minimum scale capacity that the @{link ProcessingUnit
is deployed with. |
void |
setPollingIntervalSeconds(int pollingTimeIntervalSeconds)
Sets the polling interval in which the scale strategy SLA is monitored and enforced. |
void |
setProperties(Map<String,String> properties)
Set with String key-value pairs to configure properties belonging to this bean. |
void |
setRules(AutomaticCapacityScaleRuleConfig[] rules)
|
void |
setStatisticsPollingIntervalSeconds(int statisticsPollingIntervalSeconds)
Sets the polling rate in which statistics are gathered. |
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AutomaticCapacityScaleConfig()
public AutomaticCapacityScaleConfig(Map<String,String> properties)
Method Detail |
---|
public Map<String,String> getProperties()
BeanConfig
getProperties
in interface BeanConfig
public void setProperties(Map<String,String> properties)
BeanConfig
setProperties
in interface BeanConfig
properties
- the properties to configure this bean object.public String getBeanClassName()
BeanConfig
Bean
implementation class name corresponding to this BeanConfig.
getBeanClassName
in interface BeanConfig
public int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfig
setMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public void setPollingIntervalSeconds(int pollingTimeIntervalSeconds)
ScaleStrategyConfig
setPollingIntervalSeconds
in interface ScaleStrategyConfig
pollingTimeIntervalSeconds
- - the polling interval in secondspublic int getPollingIntervalSeconds()
getPollingIntervalSeconds
in interface ScaleStrategyConfig
public boolean isAtMostOneContainerPerMachine()
isAtMostOneContainerPerMachine
in interface ScaleStrategyConfig
public void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
ScaleStrategyConfig
setAtMostOneContainerPerMachine
in interface ScaleStrategyConfig
public void setStatisticsPollingIntervalSeconds(int statisticsPollingIntervalSeconds)
public long getStatisticsPollingIntervalSeconds()
public void setCooldownAfterScaleOutSeconds(long cooldownAfterInstanceAddedSeconds)
ProcessingUnitInstance
is added and the
ProcessingUnit.getStatus()
is DeploymentStatus.INTACT
that all
scaling rules are disabled.
Must be equal or bigger than setStatisticsPollingIntervalSeconds(int)
public long getCooldownAfterScaleOutSeconds()
public void setCooldownAfterScaleSeconds(long cooldownAfterInstanceRemovedSeconds)
ProcessingUnitInstance
is removed and the
ProcessingUnit.getStatus()
is DeploymentStatus.INTACT
that all
scaling rules are disabled.
Must be equal or bigger than setStatisticsPollingIntervalSeconds(int)
public long getCooldownAfterScaleSeconds()
public void setMinCapacity(CapacityRequirementsConfig minCapacity)
ProcessingUnit
is deployed with.
The result of a scaling rule result that decreases capacity will never
breach the minimum scale capacity.
public CapacityRequirementsConfig getMinCapacity()
public void setMaxCapacity(CapacityRequirementsConfig maxCapacity)
ProcessingUnit
is deployed with.
The result of a scaling rule result that increases capacity will never
breach the maximum scale capacity.
public void setRules(AutomaticCapacityScaleRuleConfig[] rules)
public AutomaticCapacityScaleRuleConfig[] getRules()
public CapacityRequirementsConfig getMaxCapacity()
public void setInitialCapacity(CapacityRequirementsConfig initialCapacity)
public CapacityRequirementsConfig getInitialCapacity()
public String toString()
toString
in interface ScaleStrategyConfig
toString
in class Object
public int hashCode()
hashCode
in interface ScaleStrategyConfig
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface ScaleStrategyConfig
equals
in class Object
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
GigaSpaces XAP 9.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |