@Deprecated public class AutomaticCapacityScaleConfig extends Object implements ScaleStrategyConfig, ScaleStrategyAgentZonesAwareConfig, Externalizable
AutomaticCapacityScaleConfigurer,
Serialized Form| Constructor and Description |
|---|
AutomaticCapacityScaleConfig()
Deprecated.
Default constructor
|
AutomaticCapacityScaleConfig(Map<String,String> properties)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Deprecated.
|
String |
getBeanClassName()
Deprecated.
The
Bean implementation class name corresponding to this BeanConfig. |
long |
getCooldownAfterScaleInSeconds()
Deprecated.
|
long |
getCooldownAfterScaleOutSeconds()
Deprecated.
|
long |
getCooldownAfterScaleSeconds()
Deprecated.
|
CapacityRequirementsConfig |
getInitialCapacity()
Deprecated.
|
CapacityRequirementsConfig |
getMaxCapacity()
Deprecated.
|
CapacityRequirementsConfig |
getMaxCapacityPerZone()
Deprecated.
|
int |
getMaxConcurrentRelocationsPerMachine()
Deprecated.
|
CapacityRequirementsConfig |
getMinCapacity()
Deprecated.
|
CapacityRequirementsConfig |
getMinCapacityPerZone()
Deprecated.
|
int |
getPollingIntervalSeconds()
Deprecated.
|
Map<String,String> |
getProperties()
Deprecated.
Get the String key-value pairs properties used to configure this bean.
|
AutomaticCapacityScaleRuleConfig[] |
getRules()
Deprecated.
|
long |
getStatisticsPollingIntervalSeconds()
Deprecated.
|
int |
hashCode()
Deprecated.
|
boolean |
isAllowAboveAverageMemoryPerMachine()
Deprecated.
|
boolean |
isAtMostOneConcurrentRelocation()
Deprecated.
|
boolean |
isAtMostOneContainerPerMachine()
Deprecated.
|
boolean |
isGridServiceAgentZonesAware()
Deprecated.
|
void |
readExternal(ObjectInput in)
Deprecated.
|
void |
setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
Deprecated.
Allows a single machine to accommodate for more than the average maximum memory allocation of
a Processing Unit.
|
void |
setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
Deprecated.
Limits the number of concurrent relocations for the entire cluster to 1.
|
void |
setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
Deprecated.
When set to true, at most one Grid Service Container for this Processing Unit is started per
machine.
|
void |
setCooldownAfterScaleInSeconds(long cooldownAfterInstanceRemovedSeconds)
Deprecated.
Sets the number of seconds after a
ProcessingUnitInstance is removed and the ProcessingUnit.getStatus() is DeploymentStatus.INTACT that all scaling rules are
disabled. |
void |
setCooldownAfterScaleOutSeconds(long cooldownAfterInstanceAddedSeconds)
Deprecated.
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)
Deprecated.
|
void |
setGridServiceAgentZonesAware(boolean enableAgentZonesAware)
Deprecated.
By default disabled, which means that the following machines: - Machines started due to
failover of another machine.
|
void |
setInitialCapacity(CapacityRequirementsConfig initialCapacity)
Deprecated.
|
void |
setMaxCapacity(CapacityRequirementsConfig maxCapacity)
Deprecated.
Sets the maximum scale capacity that the @{link
ProcessingUnit is deployed with. |
void |
setMaxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)
Deprecated.
Sets the maximum scale capacity per agent zone that the @{link
ProcessingUnit is
deployed with. |
void |
setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Deprecated.
Specifies the number of processing unit instance relocations each machine can handle
concurrently.
|
void |
setMinCapacity(CapacityRequirementsConfig minCapacity)
Deprecated.
Sets the minimum scale capacity that the @{link
ProcessingUnit is deployed with. |
void |
setMinCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)
Deprecated.
Sets the minimum scale capacity per agent zone that the @{link
ProcessingUnit is
deployed with. |
void |
setPollingIntervalSeconds(int pollingTimeIntervalSeconds)
Deprecated.
Sets the polling interval in which the scale strategy SLA is monitored and enforced.
|
void |
setProperties(Map<String,String> properties)
Deprecated.
Set with String key-value pairs to configure properties belonging to this bean.
|
void |
setRules(AutomaticCapacityScaleRuleConfig[] rules)
Deprecated.
|
void |
setStatisticsPollingIntervalSeconds(int statisticsPollingIntervalSeconds)
Deprecated.
Sets the polling rate in which statistics are gathered.
|
String |
toString()
Deprecated.
|
void |
writeExternal(ObjectOutput out)
Deprecated.
|
public AutomaticCapacityScaleConfig()
public Map<String,String> getProperties()
BeanConfiggetProperties in interface BeanConfigpublic void setProperties(Map<String,String> properties)
BeanConfigsetProperties in interface BeanConfigproperties - the properties to configure this bean object.public String getBeanClassName()
BeanConfigBean implementation class name corresponding to this BeanConfig.getBeanClassName in interface BeanConfigpublic int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfigpublic void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfigsetMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfigpublic void setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
ScaleStrategyConfigsetAtMostOneConcurrentRelocation in interface ScaleStrategyConfigScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)public boolean isAtMostOneConcurrentRelocation()
isAtMostOneConcurrentRelocation in interface ScaleStrategyConfigpublic void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
ScaleStrategyConfigsetAllowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigpublic boolean isAllowAboveAverageMemoryPerMachine()
isAllowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigpublic void setPollingIntervalSeconds(int pollingTimeIntervalSeconds)
ScaleStrategyConfigsetPollingIntervalSeconds in interface ScaleStrategyConfigpollingTimeIntervalSeconds - - the polling interval in secondspublic int getPollingIntervalSeconds()
getPollingIntervalSeconds in interface ScaleStrategyConfigpublic boolean isAtMostOneContainerPerMachine()
isAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
ScaleStrategyConfigsetAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic 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()
@Deprecated public void setCooldownAfterScaleSeconds(long cooldownAfterInstanceRemovedSeconds)
setCooldownAfterScaleInSeconds(long)public void setCooldownAfterScaleInSeconds(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)@Deprecated public long getCooldownAfterScaleSeconds()
getCooldownAfterScaleInSeconds()public long getCooldownAfterScaleInSeconds()
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 CapacityRequirementsConfig getMinCapacityPerZone()
public void setMinCapacityPerZone(CapacityRequirementsConfig minCapacityPerZone)
ProcessingUnit is
deployed with.
The result of a scaling rule result that increases capacity will never breach the minimum
scale capacity per agent zone.
This attribute should be used together with setGridServiceAgentZonesAware(boolean)
enabled.public CapacityRequirementsConfig getMaxCapacityPerZone()
public void setMaxCapacityPerZone(CapacityRequirementsConfig maxCapacityPerZone)
ProcessingUnit is
deployed with.
The result of a scaling rule result that increases capacity will never breach the maximum
scale capacity per agent zone.
This attribute should be used together with setGridServiceAgentZonesAware(boolean)
enabled.public void setRules(AutomaticCapacityScaleRuleConfig[] rules)
public AutomaticCapacityScaleRuleConfig[] getRules()
public CapacityRequirementsConfig getMaxCapacity()
public void setInitialCapacity(CapacityRequirementsConfig initialCapacity)
public CapacityRequirementsConfig getInitialCapacity()
public boolean isGridServiceAgentZonesAware()
isGridServiceAgentZonesAware in interface ScaleStrategyAgentZonesAwareConfigpublic void setGridServiceAgentZonesAware(boolean enableAgentZonesAware)
ScaleStrategyAgentZonesAwareConfigAutomaticCapacityScaleRuleConfig
sue to threshold breach are started with a Grid Service Agent zones as described in #getGridServiceAgentZones()
When enabled, these machines are started with the same ExactZonesConfig as the failed
machine, or the same ExactZonesConfig as the machines whose threshold was breached.setGridServiceAgentZonesAware in interface ScaleStrategyAgentZonesAwareConfigpublic String toString()
toString in interface ScaleStrategyConfigtoString in class Objectpublic int hashCode()
hashCode in interface ScaleStrategyConfighashCode in class Objectpublic boolean equals(Object obj)
equals in interface ScaleStrategyConfigequals in class Objectpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © GigaSpaces.