public class ElasticSpaceDeployment extends AbstractElasticProcessingUnitDeployment implements ElasticStatefulDeploymentTopology, AdvancedStatefulDeploymentTopology
ElasticSpaceDeployment| Constructor and Description |
|---|
ElasticSpaceDeployment(String spaceName)
Constructs a new Space deployment with the space name that will be created (it will also be
the processing unit name).
|
| Modifier and Type | Method and Description |
|---|---|
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
${...} defined within a
processing unit configuration. |
ElasticSpaceDeployment |
addDependencies(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.
|
ElasticSpaceConfig |
create()
Converts this fluent API object to a lazy implementation of ProcessingUnitConfig
|
ElasticSpaceDeployment |
dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically.
|
ElasticSpaceDeployment |
environmentVariable(String name,
String value)
Sets an environment variable that will be passed to forked process.
|
ElasticSpaceConfig |
getConfig() |
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
AbstractElasticProcessingUnitDeployment.commandLineArgument(String) to override all the
vm arguments that the JVM will start by default with. |
ElasticSpaceDeployment |
publicMachineProvisioning(ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically.
|
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.
|
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. |
addContextPropertyDefault, getElasticProperties, scale, sharedMachineProvisioningpublic ElasticSpaceDeployment(String spaceName)
public ElasticSpaceDeployment maxMemoryCapacity(int maxMemoryCapacity, MemoryUnit unit)
ElasticStatefulDeploymentTopologymaxMemoryCapacity in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment maxMemoryCapacity(String maxMemoryCapacity)
ElasticStatefulDeploymentTopologymaxMemoryCapacity in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment memoryCapacityPerContainer(int memoryCapacityPerContainer, MemoryUnit unit)
ElasticDeploymentTopologymemoryCapacityPerContainer in interface ElasticDeploymentTopologymemoryCapacityPerContainer in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopologymemoryCapacityPerContainer in interface ElasticDeploymentTopologymemoryCapacityPerContainer in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment maxNumberOfCpuCores(int maxNumberOfCpuCores)
ElasticStatefulDeploymentTopologymaxNumberOfCpuCores in interface ElasticStatefulDeploymentTopologypublic ElasticSpaceDeployment scale(EagerScaleConfig strategy)
EagerScaleTopologyscale in interface EagerScaleTopologyEagerScaleConfig,
EagerScaleConfigurerpublic ElasticSpaceDeployment scale(ManualCapacityScaleConfig strategy)
ManualCapacityScaleTopologyscale in interface ManualCapacityScaleTopologyManualCapacityScaleConfig,
ManualCapacityScaleConfigurerpublic ElasticSpaceDeployment name(String name)
ElasticDeploymentTopologyname in interface ElasticDeploymentTopologyname in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment addContextProperty(String key, String value)
ElasticDeploymentTopology${...} defined within a
processing unit configuration.addContextProperty in interface ElasticDeploymentTopologyaddContextProperty in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment secured(boolean secured)
ProcessingUnitDeploymentTopologysecured in interface ProcessingUnitDeploymentTopologysecured in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopologyuserDetails in interface ProcessingUnitDeploymentTopologyuserDetails in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment userDetails(String userName, String password)
ProcessingUnitDeploymentTopologyuserDetails in interface ProcessingUnitDeploymentTopologyuserDetails in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment useScriptToStartContainer()
AbstractElasticProcessingUnitDeploymentGridServiceContainer to be started using a
script and not a pure Java process.useScriptToStartContainer in interface ElasticDeploymentTopologyuseScriptToStartContainer in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment overrideCommandLineArguments()
AbstractElasticProcessingUnitDeploymentAbstractElasticProcessingUnitDeployment.commandLineArgument(String) to override all the
vm arguments that the JVM will start by default with.overrideCommandLineArguments in interface ElasticDeploymentTopologyoverrideCommandLineArguments in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment commandLineArgument(String commandLineArgument)
AbstractElasticProcessingUnitDeployment-Xmx512m.commandLineArgument in interface ElasticDeploymentTopologycommandLineArgument in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment addCommandLineArgument(String commandLineArgument)
ElasticDeploymentTopology-Xmx512m.addCommandLineArgument in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment environmentVariable(String name, String value)
AbstractElasticProcessingUnitDeploymentenvironmentVariable in interface ElasticDeploymentTopologyenvironmentVariable in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment addEnvironmentVariable(String name, String value)
ElasticDeploymentTopologyaddEnvironmentVariable in interface ElasticDeploymentTopologypublic ElasticSpaceDeployment highlyAvailable(boolean highlyAvailable)
ElasticStatefulDeploymentTopologyhighlyAvailable 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 ElasticDeploymentTopologydedicatedMachineProvisioning in class AbstractElasticProcessingUnitDeploymentElasticDeploymentTopology.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 publicMachineProvisioning(ElasticMachineProvisioningConfig config)
ElasticDeploymentTopologyThe machines returned by the 'machine provisioner' will be shared by any other instance using publicMachineProvisioning or any non-elastic processing unit instance.
publicMachineProvisioning in interface ElasticDeploymentTopologypublicMachineProvisioning in class AbstractElasticProcessingUnitDeploymentpublic ElasticSpaceDeployment numberOfBackupsPerPartition(int numberOfBackupsPerPartition)
AdvancedStatefulDeploymentTopologynumberOfBackupsPerPartition in interface AdvancedStatefulDeploymentTopologypublic ElasticSpaceDeployment numberOfPartitions(int numberOfPartitions)
AdvancedStatefulDeploymentTopologyElasticStatefulDeploymentTopology.maxMemoryCapacity(String)
and ElasticStatefulDeploymentTopology.maxNumberOfCpuCores(int).
This is an advanced property.numberOfPartitions in interface AdvancedStatefulDeploymentTopology@Deprecated public ElasticSpaceDeployment minNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
public ElasticSpaceDeployment singleMachineDeployment()
AdvancedStatefulDeploymentTopologysingleMachineDeployment in interface AdvancedStatefulDeploymentTopologypublic ElasticSpaceDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopologyaddDependency in interface ProcessingUnitDeploymentTopologypublic ElasticSpaceDeployment addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopologyaddDependencies in interface ProcessingUnitDeploymentTopologyaddDependencies in class AbstractElasticProcessingUnitDeploymentProcessingUnitDeploymentDependenciesConfigurerpublic ElasticSpaceConfig create()
ProcessingUnitDeploymentTopologycreate in interface ProcessingUnitDeploymentTopologypublic ElasticSpaceConfig getConfig()
getConfig in class AbstractElasticProcessingUnitDeploymentCopyright © GigaSpaces.