public class EagerScaleConfig extends Object implements ScaleStrategyConfig, Externalizable
Constructor and Description |
---|
EagerScaleConfig() |
EagerScaleConfig(Map<String,String> properties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getBeanClassName()
The
Bean implementation class name corresponding to this BeanConfig. |
int |
getMaxConcurrentRelocationsPerMachine() |
int |
getPollingIntervalSeconds() |
Map<String,String> |
getProperties()
Get the String key-value pairs properties used to configure this bean.
|
int |
hashCode() |
boolean |
isAllowAboveAverageMemoryPerMachine() |
boolean |
isAtMostOneConcurrentRelocation() |
boolean |
isAtMostOneContainerPerMachine() |
boolean |
isAtMostOneContainersPerMachine()
Deprecated.
|
void |
readExternal(ObjectInput in) |
void |
setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
Allows a single machine to accommodate for more than the average maximum memory allocation of a Processing Unit.
|
void |
setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
Limits the number of concurrent relocations for the entire cluster to 1.
|
void |
setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
When set to true, at most one Grid Service Container for this Processing Unit is started per machine.
|
void |
setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Specifies the number of processing unit instance relocations each machine can handle concurrently.
|
void |
setPollingIntervalSeconds(int pollingIntervalSeconds)
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) |
public void setAtMostOneConcurrentRelocation(boolean atMostOneConcurrentRelocation)
ScaleStrategyConfig
setAtMostOneConcurrentRelocation
in interface ScaleStrategyConfig
ScaleStrategyConfig.setMaxConcurrentRelocationsPerMachine(int)
public boolean isAtMostOneConcurrentRelocation()
isAtMostOneConcurrentRelocation
in interface ScaleStrategyConfig
public int getPollingIntervalSeconds()
getPollingIntervalSeconds
in interface ScaleStrategyConfig
public void setPollingIntervalSeconds(int pollingIntervalSeconds)
ScaleStrategyConfig
setPollingIntervalSeconds
in interface ScaleStrategyConfig
pollingIntervalSeconds
- - the polling interval in secondspublic int getMaxConcurrentRelocationsPerMachine()
getMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
ScaleStrategyConfig
setMaxConcurrentRelocationsPerMachine
in interface ScaleStrategyConfig
public void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
ScaleStrategyConfig
setAllowAboveAverageMemoryPerMachine
in interface ScaleStrategyConfig
public boolean isAllowAboveAverageMemoryPerMachine()
isAllowAboveAverageMemoryPerMachine
in interface ScaleStrategyConfig
@Deprecated public boolean isAtMostOneContainersPerMachine()
public boolean isAtMostOneContainerPerMachine()
isAtMostOneContainerPerMachine
in interface ScaleStrategyConfig
public void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
ScaleStrategyConfig
setAtMostOneContainerPerMachine
in interface ScaleStrategyConfig
public void setProperties(Map<String,String> properties)
BeanConfig
setProperties
in interface BeanConfig
properties
- the properties to configure this bean object.public Map<String,String> getProperties()
BeanConfig
getProperties
in interface BeanConfig
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 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
Copyright © GigaSpaces.