GigaSpaces XAP 9.1 API

org.openspaces.admin.pu.elastic.config
Class EagerScaleConfig

java.lang.Object
  extended by org.openspaces.admin.pu.elastic.config.EagerScaleConfig
All Implemented Interfaces:
Externalizable, Serializable, BeanConfig, ScaleStrategyConfig

public class EagerScaleConfig
extends Object
implements ScaleStrategyConfig, Externalizable

See Also:
Serialized Form

Constructor Summary
EagerScaleConfig()
           
EagerScaleConfig(Map<String,String> properties)
           
 
Method Summary
 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 isAtMostOneContainerPerMachine()
           
 boolean isAtMostOneContainersPerMachine()
          Deprecated. 
 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 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EagerScaleConfig

public EagerScaleConfig(Map<String,String> properties)

EagerScaleConfig

public EagerScaleConfig()
Method Detail

getPollingIntervalSeconds

public int getPollingIntervalSeconds()
Specified by:
getPollingIntervalSeconds in interface ScaleStrategyConfig

setPollingIntervalSeconds

public void setPollingIntervalSeconds(int pollingIntervalSeconds)
Description copied from interface: ScaleStrategyConfig
Sets the polling interval in which the scale strategy SLA is monitored and enforced.

Specified by:
setPollingIntervalSeconds in interface ScaleStrategyConfig
Parameters:
pollingIntervalSeconds - - the polling interval in seconds

getMaxConcurrentRelocationsPerMachine

public int getMaxConcurrentRelocationsPerMachine()
Specified by:
getMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfig

setMaxConcurrentRelocationsPerMachine

public void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
Description copied from interface: ScaleStrategyConfig
Specifies the number of processing unit instance relocations each machine can handle concurrently. Relocation requires network and CPU resources, and too many concurrent relocations per machine may degrade its performance temporarily. The data recovery running as part of the relocation uses by default 4 threads. So the total number of threads is 4 multiplied by the specified value. By setting this value higher than 1, processing unit rebalancing completes faster, by using more machine cpu and network resources. Default value is 1. This is an advanced property setting.

Specified by:
setMaxConcurrentRelocationsPerMachine in interface ScaleStrategyConfig

isAtMostOneContainersPerMachine

@Deprecated
public boolean isAtMostOneContainersPerMachine()
Deprecated. 


isAtMostOneContainerPerMachine

public boolean isAtMostOneContainerPerMachine()
Specified by:
isAtMostOneContainerPerMachine in interface ScaleStrategyConfig

setAtMostOneContainerPerMachine

public void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
Description copied from interface: ScaleStrategyConfig
When set to true, at most one Grid Service Container for this Processing Unit is started per machine.

Specified by:
setAtMostOneContainerPerMachine in interface ScaleStrategyConfig

setProperties

public void setProperties(Map<String,String> properties)
Description copied from interface: BeanConfig
Set with String key-value pairs to configure properties belonging to this bean. Overrides all previously set properties.

Specified by:
setProperties in interface BeanConfig
Parameters:
properties - the properties to configure this bean object.

getProperties

public Map<String,String> getProperties()
Description copied from interface: BeanConfig
Get the String key-value pairs properties used to configure this bean.

Specified by:
getProperties in interface BeanConfig
Returns:
the properties used to configure this bean object.

getBeanClassName

public String getBeanClassName()
Description copied from interface: BeanConfig
The Bean implementation class name corresponding to this BeanConfig.

Specified by:
getBeanClassName in interface BeanConfig
Returns:
the name of the admin Bean implementation class.

toString

public String toString()
Specified by:
toString in interface ScaleStrategyConfig
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Specified by:
equals in interface ScaleStrategyConfig
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface ScaleStrategyConfig
Overrides:
hashCode in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

GigaSpaces XAP 9.1 API

Copyright © GigaSpaces.