|
GigaSpaces XAP 10.0.1 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.ManualCapacityScaleConfig
public class ManualCapacityScaleConfig
Defines a manual scaling strategy that consumes the specified memory capacity. When enabled the processing unit scales out whenever the specified memory capacity deviates from the actual memory capacity. When a backup partition is enabled (which usually is the case), the specified memory capacity is the total memory occupied by the primary partition instances and the backup partition instances.
ManualCapacityScaleConfigurer,
Serialized Form| Constructor Summary | |
|---|---|
ManualCapacityScaleConfig()
Default constructor |
|
ManualCapacityScaleConfig(Map<String,String> properties)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getBeanClassName()
The Bean implementation class name corresponding to this BeanConfig. |
Map<String,Long> |
getDrivesCapacityInMB()
|
int |
getMaxConcurrentRelocationsPerMachine()
|
long |
getMemoryCapacityInMB()
|
double |
getNumberOfCpuCores()
|
int |
getPollingIntervalSeconds()
|
Map<String,String> |
getProperties()
Get the String key-value pairs properties used to configure this bean. |
int |
hashCode()
|
boolean |
isAtMostOneContainerPerMachine()
|
boolean |
isAtMostOneContainersPerMachine()
Deprecated. |
boolean |
isGridServiceAgentZonesAware()
|
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 |
setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
Specifies the disk and network drive capacity. |
void |
setGridServiceAgentZonesAware(boolean enableAgentZonesAware)
By default disabled, which means that the following machines: - Machines started due to failover of another machine |
void |
setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Specifies the number of processing unit instance relocations each machine can handle concurrently. |
void |
setMemoryCapacityInMB(long memory)
Specifies the total memory capacity. |
void |
setNumberOfCpuCores(double cpuCores)
Specifies the total CPU cores. |
void |
setPollingIntervalSeconds(int seconds)
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. |
CapacityRequirements |
toCapacityRequirements()
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ManualCapacityScaleConfig()
public ManualCapacityScaleConfig(Map<String,String> properties)
| Method Detail |
|---|
public void setMemoryCapacityInMB(long memory)
ScaleStrategyCapacityRequirementConfig
setMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfig
public long getMemoryCapacityInMB()
throws NumberFormatException
getMemoryCapacityInMB in interface ScaleStrategyCapacityRequirementConfigNumberFormatExceptionpublic void setNumberOfCpuCores(double cpuCores)
ScaleStrategyCapacityRequirementConfig
setNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic double getNumberOfCpuCores()
getNumberOfCpuCores in interface ScaleStrategyCapacityRequirementConfigpublic void setPollingIntervalSeconds(int seconds)
ScaleStrategyConfig
setPollingIntervalSeconds in interface ScaleStrategyConfigseconds - - the polling interval in secondspublic int getPollingIntervalSeconds()
getPollingIntervalSeconds in interface ScaleStrategyConfigpublic int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfigpublic void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfig
setMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfig@Deprecated public boolean isAtMostOneContainersPerMachine()
public boolean isAtMostOneContainerPerMachine()
isAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
ScaleStrategyConfig
setAtMostOneContainerPerMachine in interface ScaleStrategyConfigpublic Map<String,String> getProperties()
BeanConfig
getProperties in interface BeanConfigpublic void setProperties(Map<String,String> properties)
BeanConfig
setProperties 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)
ScaleStrategyCapacityRequirementConfig
setDrivesCapacityInMB 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*1024MBs
public 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 Object
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundExceptionpublic CapacityRequirements toCapacityRequirements()
toCapacityRequirements in interface ScaleStrategyCapacityRequirementConfig
|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||