GigaSpaces XAP 9.5 API

org.openspaces.admin.pu.elastic.config
Interface ScaleStrategyConfig

All Superinterfaces:
BeanConfig, Externalizable, Serializable
All Known Implementing Classes:
AutomaticCapacityScaleConfig, EagerScaleConfig, ManualCapacityPerZonesScaleConfig, ManualCapacityScaleConfig

public interface ScaleStrategyConfig
extends BeanConfig, Externalizable


Method Summary
 boolean equals(Object other)
           
 int getMaxConcurrentRelocationsPerMachine()
           
 int getPollingIntervalSeconds()
           
 int hashCode()
           
 boolean isAtMostOneContainerPerMachine()
           
 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 seconds)
          Sets the polling interval in which the scale strategy SLA is monitored and enforced.
 String toString()
           
 
Methods inherited from interface org.openspaces.admin.bean.BeanConfig
getBeanClassName, getProperties, setProperties
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Method Detail

setPollingIntervalSeconds

void setPollingIntervalSeconds(int seconds)
Sets the polling interval in which the scale strategy SLA is monitored and enforced.

Parameters:
seconds - - the polling interval in seconds

getPollingIntervalSeconds

int getPollingIntervalSeconds()

getMaxConcurrentRelocationsPerMachine

int getMaxConcurrentRelocationsPerMachine()

setMaxConcurrentRelocationsPerMachine

void setMaxConcurrentRelocationsPerMachine(int maxNumberOfConcurrentRelocationsPerMachine)
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.

Parameters:
maxNumberOfConcurrentRelocationsPerMachine -

setAtMostOneContainerPerMachine

void setAtMostOneContainerPerMachine(boolean atMostOneContainerPerMachine)
When set to true, at most one Grid Service Container for this Processing Unit is started per machine.

Since:
8.0.3

isAtMostOneContainerPerMachine

boolean isAtMostOneContainerPerMachine()

equals

boolean equals(Object other)
Overrides:
equals in class Object

hashCode

int hashCode()
Overrides:
hashCode in class Object

toString

String toString()
Overrides:
toString in class Object

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.