|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.admin.space.ElasticSpaceDeployment
public class ElasticSpaceDeployment
Defines an elastic deployment of a partitioned data grid (space). The advantage of partitioned topology is that the data can spread across different containers, and is not limited by the size of each container. The disadvantage compared to replicated topology is that there is only 1 read/write endpoint for each data object (no concurrent reads from different containers for the same data).
ElasticSpaceDeployment| Constructor Summary | |
|---|---|
ElasticSpaceDeployment(String spaceName)
Constructs a new Space deployment with the space name that will be created (it will also be the processing unit name). |
|
| Method Summary | |
|---|---|
ElasticSpaceDeployment |
addCommandLineArgument(String commandLineArgument)
Will add a JVM level argument when the process is executed using pure JVM. |
ElasticSpaceDeployment |
addContextProperty(String key,
String value)
Defines a context deploy time property overriding any ${...} |
ElasticSpaceDeployment |
addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
Postpones deployment of processing unit instances until the specified dependencies are met. |
ElasticSpaceDeployment |
addDependency(String requiredProcessingUnitName)
Postpones deployment of processing unit instances deployment until the specified processing unit deployment is complete. |
ElasticSpaceDeployment |
addEnvironmentVariable(String name,
String value)
Defines an environment variable that will be passed to forked process. |
ElasticSpaceDeployment |
commandLineArgument(String commandLineArgument)
Will add a JVM level argument when the process is executed using pure JVM. |
ElasticSpaceDeployment |
dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically. |
ElasticSpaceDeployment |
environmentVariable(String name,
String value)
Defines an environment variable that will be passed to forked process. |
ElasticSpaceDeployment |
highlyAvailable(boolean highlyAvailable)
Specifies if the space should duplicate each information on two different machines. |
ElasticSpaceDeployment |
maxMemoryCapacity(int maxMemoryCapacity,
MemoryUnit unit)
Specifies an estimate of the maximum memory capacity for this processing unit. |
ElasticSpaceDeployment |
maxMemoryCapacity(String maxMemoryCapacity)
Specifies an estimate of the minimum memory capacity for this processing unit. |
ElasticSpaceDeployment |
maxNumberOfCpuCores(int maxNumberOfCpuCores)
Specifies an estimate for the maximum total number of cpu cores used by this processing unit. |
ElasticSpaceDeployment |
memoryCapacityPerContainer(int memoryCapacityPerContainer,
MemoryUnit unit)
Specifies the the heap size per container (operating system process) For example: memoryCapacityPerContainer(256,MemoryUnit.MEGABYTES) is equivalent to commandLineArgument("-Xmx256m").commandLineArgument("-Xms256m") |
ElasticSpaceDeployment |
memoryCapacityPerContainer(String memoryCapacityPerContainer)
Specifies the the heap size per container (operating system process) For example: memoryCapacityPerContainer("256m") is equivalent to commandLineArgument("-Xmx256m").commandLineArgument("-Xms256m") |
ElasticSpaceDeployment |
minNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
Deprecated. since 8.0.6 |
ElasticSpaceDeployment |
name(String name)
Sets the processing unit name that will be deployed. |
ElasticSpaceDeployment |
numberOfBackupsPerPartition(int numberOfBackupsPerPartition)
Overrides the number of backup processing unit instances per partition. |
ElasticSpaceDeployment |
numberOfPartitions(int numberOfPartitions)
Defines the number of processing unit partitions. |
ElasticSpaceDeployment |
overrideCommandLineArguments()
Will cause JVM options added using ElasticDeploymentTopology.commandLineArgument(String) to override all the vm arguments
that the JVM will start by default with. |
ElasticSpaceDeployment |
scale(EagerScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticSpaceDeployment |
scale(ManualCapacityScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticSpaceDeployment |
secured(boolean secured)
Will deploy a secured processing unit. |
ElasticSpaceDeployment |
sharedMachineProvisioning(String sharingId,
ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically. |
ElasticSpaceDeployment |
singleMachineDeployment()
Allows deployment of the processing unit on a single machine, by lifting the limitation for primary and backup processing unit instances from the same partition to be deployed on different machines. |
ProcessingUnitDeployment |
toProcessingUnitDeployment(Admin admin)
Converts the deployment to a standard ProcessingUnitDeployment |
ElasticSpaceDeployment |
userDetails(String userName,
String password)
Advanced: Sets the security user details for authentication and authorization of the processing unit. |
ElasticSpaceDeployment |
userDetails(UserDetails userDetails)
Advanced: Sets the security user details for authentication and authorization of the processing unit. |
ElasticSpaceDeployment |
useScriptToStartContainer()
Will cause the GridServiceContainer to be started using a script
and not a pure Java process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ElasticSpaceDeployment(String spaceName)
| Method Detail |
|---|
public ElasticSpaceDeployment maxMemoryCapacity(int maxMemoryCapacity,
MemoryUnit unit)
ElasticStatefulDeploymentTopology
maxMemoryCapacity in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment maxMemoryCapacity(String maxMemoryCapacity)
ElasticStatefulDeploymentTopology
maxMemoryCapacity in interface ElasticStatefulDeploymentTopology
public ElasticSpaceDeployment memoryCapacityPerContainer(int memoryCapacityPerContainer,
MemoryUnit unit)
ElasticDeploymentTopology
memoryCapacityPerContainer in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopology
memoryCapacityPerContainer in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment maxNumberOfCpuCores(int maxNumberOfCpuCores)
ElasticStatefulDeploymentTopology
maxNumberOfCpuCores in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment scale(EagerScaleConfig strategy)
EagerScaleTopology
scale in interface EagerScaleTopologyEagerScaleConfig,
EagerScaleConfigurerpublic ElasticSpaceDeployment scale(ManualCapacityScaleConfig strategy)
ManualCapacityScaleTopology
scale in interface ManualCapacityScaleTopologyManualCapacityScaleConfig,
ManualCapacityScaleConfigurerpublic ElasticSpaceDeployment name(String name)
ElasticDeploymentTopology
name in interface ElasticDeploymentTopology
public ElasticSpaceDeployment addContextProperty(String key,
String value)
ElasticDeploymentTopology${...} defined within a processing
unit configuration.
addContextProperty in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment secured(boolean secured)
ProcessingUnitDeploymentTopology
secured in interface ProcessingUnitDeploymentTopologypublic ElasticSpaceDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopology
userDetails in interface ProcessingUnitDeploymentTopology
public ElasticSpaceDeployment userDetails(String userName,
String password)
ProcessingUnitDeploymentTopology
userDetails in interface ProcessingUnitDeploymentTopologypublic ElasticSpaceDeployment useScriptToStartContainer()
ElasticDeploymentTopologyGridServiceContainer to be started using a script
and not a pure Java process.
useScriptToStartContainer in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment overrideCommandLineArguments()
ElasticDeploymentTopologyElasticDeploymentTopology.commandLineArgument(String) to override all the vm arguments
that the JVM will start by default with.
overrideCommandLineArguments in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment commandLineArgument(String commandLineArgument)
ElasticDeploymentTopology-Xmx512m.
This method does not conform to the fluent API naming conventions. Use addCommandLineArgument instead.
commandLineArgument in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment addCommandLineArgument(String commandLineArgument)
ElasticDeploymentTopology-Xmx512m.
addCommandLineArgument in interface ElasticDeploymentTopology
public ElasticSpaceDeployment environmentVariable(String name,
String value)
ElasticDeploymentTopology
environmentVariable in interface ElasticDeploymentTopology
public ElasticSpaceDeployment addEnvironmentVariable(String name,
String value)
ElasticDeploymentTopology
addEnvironmentVariable in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment highlyAvailable(boolean highlyAvailable)
ElasticStatefulDeploymentTopology
highlyAvailable in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
ElasticDeploymentTopologyThe machines returned by the 'machine provisioner' will be dedicated to the instances of this processing unit. In other words, this processing unit will not share the machines with other processing units.
See also DiscoveredMachineProvisioningConfig for configuring deployment on a non-virtualized environment. Machines are discovered
if 'Grid Service Agents' are running on them.
dedicatedMachineProvisioning in interface ElasticDeploymentTopologyElasticDeploymentTopology.sharedMachineProvisioning(String, ElasticMachineProvisioningConfig)
public ElasticSpaceDeployment sharedMachineProvisioning(String sharingId,
ElasticMachineProvisioningConfig config)
ElasticDeploymentTopologyThe machines returned by the 'machine provisioner' will be shared by other processing unit instances with the same sharingId.
See also DiscoveredMachineProvisioningConfig for configuring deployment on a
non-virtualized environment. Machines are discovered if 'Grid Service Agents' are running on
them.
sharedMachineProvisioning in interface ElasticDeploymentTopologyElasticDeploymentTopology.dedicatedMachineProvisioning(ElasticMachineProvisioningConfig)public ElasticSpaceDeployment numberOfBackupsPerPartition(int numberOfBackupsPerPartition)
AdvancedStatefulDeploymentTopology
numberOfBackupsPerPartition in interface AdvancedStatefulDeploymentTopologypublic ElasticSpaceDeployment numberOfPartitions(int numberOfPartitions)
AdvancedStatefulDeploymentTopology#maxMemoryCapacity(String) and #maxNumberOfCpuCores(int).
This is an advanced property.
numberOfPartitions in interface AdvancedStatefulDeploymentTopology@Deprecated public ElasticSpaceDeployment minNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
ElasticMachineProvisioningConfig.getMinimumNumberOfCpuCoresPerMachine()public ElasticSpaceDeployment singleMachineDeployment()
AdvancedStatefulDeploymentTopology
singleMachineDeployment in interface AdvancedStatefulDeploymentTopologypublic ElasticSpaceDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopology
addDependency in interface ProcessingUnitDeploymentTopologypublic ElasticSpaceDeployment addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopology
addDependencies in interface ProcessingUnitDeploymentTopologyProcessingUnitDeploymentDependenciesConfigurerpublic ProcessingUnitDeployment toProcessingUnitDeployment(Admin admin)
ProcessingUnitDeploymentTopologyProcessingUnitDeployment
toProcessingUnitDeployment in interface ProcessingUnitDeploymentTopology
|
GigaSpaces XAP 8.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||