@Deprecated public class ManualCapacityScaleConfig extends Object implements ScaleStrategyConfig, ScaleStrategyCapacityRequirementConfig, ScaleStrategyAgentZonesAwareConfig, Externalizable
ManualCapacityScaleConfigurer,
Serialized Form| Constructor and Description |
|---|
ManualCapacityScaleConfig()
Deprecated.
Default constructor
|
ManualCapacityScaleConfig(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. |
Map<String,Long> |
getDrivesCapacityInMB()
Deprecated.
|
int |
getMaxConcurrentRelocationsPerMachine()
Deprecated.
|
long |
getMemoryCapacityInMB()
Deprecated.
|
double |
getNumberOfCpuCores()
Deprecated.
|
int |
getPollingIntervalSeconds()
Deprecated.
|
Map<String,String> |
getProperties()
Deprecated.
Get the String key-value pairs properties used to configure this bean.
|
int |
hashCode()
Deprecated.
|
boolean |
isAllowAboveAverageMemoryPerMachine()
Deprecated.
|
boolean |
isAtMostOneConcurrentRelocation()
Deprecated.
|
boolean |
isAtMostOneContainerPerMachine()
Deprecated.
|
boolean |
isAtMostOneContainersPerMachine()
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 |
setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Deprecated.
Specifies the disk and network drive capacity.
|
void |
setGridServiceAgentZonesAware(boolean enableAgentZonesAware)
Deprecated.
By default disabled, which means that the following machines: - Machines started due to
failover of another machine.
|
void |
setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Deprecated.
Specifies the number of processing unit instance relocations each machine can handle
concurrently.
|
void |
setMemoryCapacityInMB(long memory)
Deprecated.
Specifies the total memory capacity.
|
void |
setNumberOfCpuCores(double cpuCores)
Deprecated.
Specifies the total CPU cores.
|
void |
setPollingIntervalSeconds(int seconds)
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.
|
CapacityRequirements |
toCapacityRequirements()
Deprecated.
|
String |
toString()
Deprecated.
|
void |
writeExternal(ObjectOutput out)
Deprecated.
|
public ManualCapacityScaleConfig()
public void setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
ScaleStrategyConfigsetAtMostOneConcurrentRelocation in interface ScaleStrategyConfigScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)public boolean isAtMostOneConcurrentRelocation()
isAtMostOneConcurrentRelocation in interface ScaleStrategyConfigpublic void setMemoryCapacityInMB(long memory)
ScaleStrategyCapacityRequirementConfigsetMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfigpublic long getMemoryCapacityInMB()
throws NumberFormatException
getMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic void setNumberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfigsetNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic double getNumberOfCpuCores()
getNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic void setPollingIntervalSeconds(int seconds)
ScaleStrategyConfigsetPollingIntervalSeconds in interface ScaleStrategyConfigseconds - - the polling interval in secondspublic int getPollingIntervalSeconds()
getPollingIntervalSeconds in interface ScaleStrategyConfigpublic int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfigpublic void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfigsetMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfig@Deprecated public boolean isAtMostOneContainersPerMachine()
public boolean isAtMostOneContainerPerMachine()
isAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
ScaleStrategyConfigsetAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
ScaleStrategyConfigsetAllowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigpublic boolean isAllowAboveAverageMemoryPerMachine()
isAllowAboveAverageMemoryPerMachine in interface ScaleStrategyConfigpublic 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 String toString()
toString in interface ScaleStrategyConfigtoString in class Objectpublic void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
ScaleStrategyCapacityRequirementConfigsetDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfigmegaBytesPerDrive - - a mapping between the file system directory representing the drive
and its capacity (in mega-bytes) needed by the pu .
For example the drive "/" (on linux) has the size of 50*1024MBs or
the drive "c:\" (on windows) has the size of 50*1024MBspublic Map<String,Long> getDrivesCapacityInMB() throws NumberFormatException
getDrivesCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic 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 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 ExternalizableIOExceptionClassNotFoundExceptionpublic CapacityRequirements toCapacityRequirements()
toCapacityRequirements in interface ScaleStrategyCapacityRequirementConfigCopyright © GigaSpaces.