GigaSpaces XAP 9.7.2 API

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

java.lang.Object
  extended by org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
      extended by org.openspaces.admin.pu.elastic.config.ElasticStatefulProcessingUnitConfig
All Implemented Interfaces:
ElasticStatefulProcessingUnitConfigHolder, ProcessingUnitConfigHolder
Direct Known Subclasses:
ElasticSpaceConfig

public class ElasticStatefulProcessingUnitConfig
extends org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
implements ElasticStatefulProcessingUnitConfigHolder

Since:
9.0.1
Author:
itaif

Field Summary
static String MAX_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
           
static String MIN_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
           
 
Constructor Summary
ElasticStatefulProcessingUnitConfig()
           
 
Method Summary
protected  int calcNumberOfPartitionsFromCpuRequirements(Admin admin)
           
protected  int calcNumberOfPartitionsFromMemoryRequirements()
           
 long getMaxMemoryCapacityInMB()
           
 double getMaxNumberOfCpuCores()
           
 int getMaxProcessingUnitInstancesFromSamePartitionPerMachine()
           
 double getMinNumberOfCpuCoresPerMachine()
          Deprecated. 
 int getNumberOfBackupInstancesPerPartition()
           
 int getNumberOfPartitions()
           
 boolean isAllowAboveAverageMemoryPerMachine()
           
 void setAdmin(Admin admin)
           
 void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
           
 void setMaxMemoryCapacityInMB(long maxMemoryCapacityInMB)
           
 void setMaxNumberOfCpuCores(double maxNumberOfCpuCores)
           
 void setMaxProcessingUnitInstancesFromSamePartitionPerMachine(int maxProcessingUnitInstancesFromSamePartitionPerMachine)
           
 void setMinNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
          Deprecated. 
 void setNumberOfBackupInstancesPerPartition(int numberOfBackupInstancesPerPartition)
           
 void setNumberOfPartitions(int numberOfPartitions)
           
 ProcessingUnitConfig toProcessingUnitConfig()
           
 
Methods inherited from class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
addCommandLineArgument, addContextProperty, addContextPropertyDefault, getCommandLineArguments, getContextProperties, getDedicatedIsolationConfig, getDefaultContextProperties, getDependencies, getDeploymentDependencies, getElasticProperties, getEnvironmentVariables, getMachineProvisioning, getMemoryCapacityPerContainerInMB, getName, getOverrideCommandLineArguments, getProcessingUnit, getPublicIsolationConfig, getScaleStrategy, getSecured, getSharedIsolation, getUserDetails, getUseScript, setCommandLineArguments, setContextProperties, setDedicatedIsolation, setDefaultContextProperties, setDependencies, setDeploymentDependencies, setElasticProperties, setEnvironmentVariables, setMachineProvisioning, setMemoryCapacityPerContainerInMB, setName, setOverrideCommandLineArguments, setProcessingUnit, setPublicIsolation, setScaleStrategy, setSecured, setSharedIsolation, setUserDetails, setUseScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openspaces.admin.pu.topology.ProcessingUnitConfigHolder
getContextProperties, getDependencies, getName, getSecured, getUserDetails, setContextProperties, setDependencies, setName, setSecured, setUserDetails
 

Field Detail

MAX_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY

public static final String MAX_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
See Also:
Constant Field Values

MIN_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY

public static final String MIN_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
See Also:
Constant Field Values
Constructor Detail

ElasticStatefulProcessingUnitConfig

public ElasticStatefulProcessingUnitConfig()
Method Detail

toProcessingUnitConfig

public ProcessingUnitConfig toProcessingUnitConfig()
Specified by:
toProcessingUnitConfig in interface ProcessingUnitConfigHolder
Overrides:
toProcessingUnitConfig in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig

calcNumberOfPartitionsFromMemoryRequirements

protected int calcNumberOfPartitionsFromMemoryRequirements()

calcNumberOfPartitionsFromCpuRequirements

protected int calcNumberOfPartitionsFromCpuRequirements(Admin admin)

getMaxMemoryCapacityInMB

public long getMaxMemoryCapacityInMB()

setMaxMemoryCapacityInMB

public void setMaxMemoryCapacityInMB(long maxMemoryCapacityInMB)

getNumberOfBackupInstancesPerPartition

public int getNumberOfBackupInstancesPerPartition()

setNumberOfBackupInstancesPerPartition

public void setNumberOfBackupInstancesPerPartition(int numberOfBackupInstancesPerPartition)

getNumberOfPartitions

public int getNumberOfPartitions()

setNumberOfPartitions

public void setNumberOfPartitions(int numberOfPartitions)

getMaxProcessingUnitInstancesFromSamePartitionPerMachine

public int getMaxProcessingUnitInstancesFromSamePartitionPerMachine()

setMaxProcessingUnitInstancesFromSamePartitionPerMachine

public void setMaxProcessingUnitInstancesFromSamePartitionPerMachine(int maxProcessingUnitInstancesFromSamePartitionPerMachine)

getMaxNumberOfCpuCores

public double getMaxNumberOfCpuCores()

setMaxNumberOfCpuCores

public void setMaxNumberOfCpuCores(double maxNumberOfCpuCores)

getMinNumberOfCpuCoresPerMachine

@Deprecated
public double getMinNumberOfCpuCoresPerMachine()
Deprecated. 


setMinNumberOfCpuCoresPerMachine

@Deprecated
public void setMinNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
Deprecated. 


isAllowAboveAverageMemoryPerMachine

public boolean isAllowAboveAverageMemoryPerMachine()

setAllowAboveAverageMemoryPerMachine

public void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)

setAdmin

public void setAdmin(Admin admin)
Specified by:
setAdmin in interface ElasticStatefulProcessingUnitConfigHolder
Parameters:
admin - - injects the admin into the config object in order for it to determine the optimal number of partitions based on the discovered machines.

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.