public class ElasticStatefulProcessingUnitConfig extends org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig implements ElasticStatefulProcessingUnitConfigHolder
Modifier and Type | Field and Description |
---|---|
static String |
MAX_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY |
static String |
MIN_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY |
Constructor and Description |
---|
ElasticStatefulProcessingUnitConfig() |
Modifier and Type | Method and Description |
---|---|
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 |
setDedicatedMachineProvisioning(DedicatedMachineProvisioningInternal dedicatedMachineProvisioningInternal)
Parse the dedicated-machine-provisioning bean, get its data and apply them to the relevant methods to enable dedicated machine provisioning
|
void |
setDeploymentDependencies(ProcessingUnitDependency[] dependencies) |
void |
setHighlyAvailable(boolean highlyAvailable) |
void |
setMachineProvisioning(ElasticMachineProvisioningConfig machineProvisioningConfig) |
void |
setMaxMemoryCapacityInMB(long maxMemoryCapacityInMB) |
void |
setMaxNumberOfCpuCores(double maxNumberOfCpuCores) |
void |
setMaxProcessingUnitInstancesFromSamePartitionPerMachine(int maxProcessingUnitInstancesFromSamePartitionPerMachine) |
void |
setMemoryCapacityPerContainerInMB(long memoryInMB) |
void |
setMinNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
Deprecated.
|
void |
setNumberOfBackupInstancesPerPartition(int numberOfBackupInstancesPerPartition) |
void |
setNumberOfPartitions(int numberOfPartitions) |
void |
setProcessingUnitFile(String processingUnitFilePath) |
void |
setProcessingUnitName(String processingUnitName) |
void |
setScaleStrategy(ScaleStrategyConfig scaleStrategy) |
void |
setSecured(Boolean secured) |
void |
setSharedMachineProvisioning(SharedMachineProvisioningInternal sharedMachineProvisioningInternal)
Parse the shared-machine-provisioning bean, get its data and apply them to the relevant methods to enable shared machine provisioning
|
void |
setSingleMachineDeployment(boolean singleMachineDeployment) |
void |
setUserDetails(UserDetailsConfig userDetails) |
ProcessingUnitConfig |
toProcessingUnitConfig() |
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, setElasticProperties, setEnvironmentVariables, setName, setOverrideCommandLineArguments, setProcessingUnit, setPublicIsolation, setSharedIsolation, setUseScript
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextProperties, getDependencies, getName, getSecured, getUserDetails, setContextProperties, setDependencies, setName
public static final String MAX_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
public static final String MIN_MEMORY_CAPACITY_MEGABYTES_DYNAMIC_PROPERTY
public ProcessingUnitConfig toProcessingUnitConfig()
toProcessingUnitConfig
in interface ProcessingUnitConfigHolder
toProcessingUnitConfig
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
protected int calcNumberOfPartitionsFromMemoryRequirements()
protected int calcNumberOfPartitionsFromCpuRequirements(Admin admin)
public long getMaxMemoryCapacityInMB()
public int getNumberOfBackupInstancesPerPartition()
public void setNumberOfBackupInstancesPerPartition(int numberOfBackupInstancesPerPartition)
public int getNumberOfPartitions()
public int getMaxProcessingUnitInstancesFromSamePartitionPerMachine()
public void setMaxProcessingUnitInstancesFromSamePartitionPerMachine(int maxProcessingUnitInstancesFromSamePartitionPerMachine)
public double getMaxNumberOfCpuCores()
@Deprecated public double getMinNumberOfCpuCoresPerMachine()
@Deprecated public void setMinNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
public boolean isAllowAboveAverageMemoryPerMachine()
public void setAllowAboveAverageMemoryPerMachine(boolean allowAboveAverageMemoryPerMachine)
public void setAdmin(Admin admin)
setAdmin
in interface ElasticStatefulProcessingUnitConfigHolder
admin
- - injects the admin into the config object in order for it to determine the
optimal number of partitions based on the discovered machines.public void setMaxNumberOfCpuCores(double maxNumberOfCpuCores)
public void setNumberOfPartitions(int numberOfPartitions)
public void setProcessingUnitFile(String processingUnitFilePath)
public void setProcessingUnitName(String processingUnitName)
public void setMaxMemoryCapacityInMB(long maxMemoryCapacityInMB)
public void setUserDetails(UserDetailsConfig userDetails)
setUserDetails
in interface ProcessingUnitConfigHolder
setUserDetails
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
ProcessingUnitDeployment.userDetails(UserDetails)
public void setSecured(Boolean secured)
setSecured
in interface ProcessingUnitConfigHolder
setSecured
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
ProcessingUnitDeployment.secured(boolean)
public void setMemoryCapacityPerContainerInMB(long memoryInMB)
setMemoryCapacityPerContainerInMB
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
public void setMachineProvisioning(ElasticMachineProvisioningConfig machineProvisioningConfig)
setMachineProvisioning
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
public void setScaleStrategy(ScaleStrategyConfig scaleStrategy)
setScaleStrategy
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
public void setHighlyAvailable(boolean highlyAvailable)
public void setSingleMachineDeployment(boolean singleMachineDeployment)
public void setDeploymentDependencies(ProcessingUnitDependency[] dependencies)
setDeploymentDependencies
in class org.openspaces.admin.internal.pu.elastic.config.AbstractElasticProcessingUnitConfig
public void setSharedMachineProvisioning(SharedMachineProvisioningInternal sharedMachineProvisioningInternal)
public void setDedicatedMachineProvisioning(DedicatedMachineProvisioningInternal dedicatedMachineProvisioningInternal)
Copyright © GigaSpaces.