|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormConstructor Summary | |
---|---|
ManualCapacityScaleConfig()
Default constructor |
|
ManualCapacityScaleConfig(Map<String,String> properties)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
|
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 |
isAtMostOneContainersPerMachine()
|
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 needed by the processing unit. |
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 of the processing unit. |
void |
setNumberOfCpuCores(double cpuCores)
Specifies the total CPU cores for the processing unit. |
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. |
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)
public long getMemoryCapacityInMB() throws NumberFormatException
NumberFormatException
public void setNumberOfCpuCores(double cpuCores)
public double getNumberOfCpuCores()
public void setPollingIntervalSeconds(int seconds)
ScaleStrategyConfig
setPollingIntervalSeconds
in interface ScaleStrategyConfig
seconds
- - the polling interval in secondspublic int getPollingIntervalSeconds()
getPollingIntervalSeconds
in interface ScaleStrategyConfig
public int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfig
setMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public boolean isAtMostOneContainersPerMachine()
public void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
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 String toString()
toString
in interface ScaleStrategyConfig
toString
in class Object
public void setDrivesCapacityInMB(Map<String,Long> megaBytesPerDrive)
megaBytesPerDrive
- - 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
NumberFormatException
public boolean equals(Object other)
equals
in interface ScaleStrategyConfig
equals
in class Object
public int hashCode()
hashCode
in interface ScaleStrategyConfig
hashCode
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 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |