@Deprecated public class ElasticSpaceDeployment extends AbstractElasticProcessingUnitDeployment implements ElasticStatefulDeploymentTopology, AdvancedStatefulDeploymentTopology
ElasticSpaceDeployment
Constructor and Description |
---|
ElasticSpaceDeployment(String spaceName)
Deprecated.
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)
Deprecated.
Will add a JVM level argument when the process is executed using pure JVM.
|
ElasticSpaceDeployment |
addContextProperty(String key,
String value)
Deprecated.
Defines a context deploy time property overriding any
${...} defined within a
processing unit configuration. |
ElasticSpaceDeployment |
addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
Deprecated.
Postpones deployment of processing unit instances until the specified dependencies are met.
|
ElasticSpaceDeployment |
addDependency(String requiredProcessingUnitName)
Deprecated.
Postpones deployment of processing unit instances deployment until the specified processing
unit deployment is complete.
|
ElasticSpaceDeployment |
addEnvironmentVariable(String name,
String value)
Deprecated.
Defines an environment variable that will be passed to forked process.
|
ElasticSpaceDeployment |
commandLineArgument(String commandLineArgument)
Deprecated.
Will add a JVM level argument when the process is executed using pure JVM.
|
ElasticSpaceConfig |
create()
Deprecated.
Converts this fluent API object to a lazy implementation of ProcessingUnitConfig
|
ElasticSpaceDeployment |
dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticSpaceDeployment |
environmentVariable(String name,
String value)
Deprecated.
Sets an environment variable that will be passed to forked process.
|
ElasticSpaceConfig |
getConfig()
Deprecated.
|
ElasticSpaceDeployment |
highlyAvailable(boolean highlyAvailable)
Deprecated.
Specifies if the space should duplicate each information on two different machines.
|
ElasticSpaceDeployment |
maxMemoryCapacity(int maxMemoryCapacity,
MemoryUnit unit)
Deprecated.
Specifies an estimate of the maximum memory capacity for this processing unit.
|
ElasticSpaceDeployment |
maxMemoryCapacity(String maxMemoryCapacity)
Deprecated.
Specifies an estimate of the minimum memory capacity for this processing unit.
|
ElasticSpaceDeployment |
maxNumberOfCpuCores(int maxNumberOfCpuCores)
Deprecated.
Specifies an estimate for the maximum total number of cpu cores used by this processing
unit.
|
ElasticSpaceDeployment |
memoryCapacityPerContainer(int memoryCapacityPerContainer,
MemoryUnit unit)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Sets the processing unit name that will be deployed.
|
ElasticSpaceDeployment |
numberOfBackupsPerPartition(int numberOfBackupsPerPartition)
Deprecated.
Overrides the number of backup processing unit instances per partition.
|
ElasticSpaceDeployment |
numberOfPartitions(int numberOfPartitions)
Deprecated.
Defines the number of processing unit partitions.
|
ElasticSpaceDeployment |
overrideCommandLineArguments()
Deprecated.
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)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticSpaceDeployment |
scale(EagerScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticSpaceDeployment |
scale(ManualCapacityScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticSpaceDeployment |
secured(boolean secured)
Deprecated.
Will deploy a secured processing unit.
|
ElasticSpaceDeployment |
sharedMachineProvisioning(String sharingId,
ElasticMachineProvisioningConfig config)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticSpaceDeployment |
singleMachineDeployment()
Deprecated.
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)
Deprecated.
Advanced: Sets the security user details for authentication and authorization of the
processing unit.
|
ElasticSpaceDeployment |
userDetails(UserDetails userDetails)
Deprecated.
Advanced: Sets the security user details for authentication and authorization of the
processing unit.
|
ElasticSpaceDeployment |
useScriptToStartContainer()
Deprecated.
Will cause the
GridServiceContainer to be started using a
script and not a pure Java process. |
addContextPropertyDefault, getElasticProperties, scale, sharedMachineProvisioning
public ElasticSpaceDeployment(String spaceName)
public ElasticSpaceDeployment maxMemoryCapacity(int maxMemoryCapacity, MemoryUnit unit)
ElasticStatefulDeploymentTopology
maxMemoryCapacity
in interface ElasticStatefulDeploymentTopology
public ElasticSpaceDeployment maxMemoryCapacity(String maxMemoryCapacity)
ElasticStatefulDeploymentTopology
maxMemoryCapacity
in interface ElasticStatefulDeploymentTopology
public ElasticSpaceDeployment memoryCapacityPerContainer(int memoryCapacityPerContainer, MemoryUnit unit)
ElasticDeploymentTopology
memoryCapacityPerContainer
in interface ElasticDeploymentTopology
memoryCapacityPerContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopology
memoryCapacityPerContainer
in interface ElasticDeploymentTopology
memoryCapacityPerContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment maxNumberOfCpuCores(int maxNumberOfCpuCores)
ElasticStatefulDeploymentTopology
maxNumberOfCpuCores
in interface ElasticStatefulDeploymentTopology
public ElasticSpaceDeployment scale(EagerScaleConfig strategy)
EagerScaleTopology
scale
in interface EagerScaleTopology
EagerScaleConfig
,
EagerScaleConfigurer
public ElasticSpaceDeployment scale(ManualCapacityScaleConfig strategy)
ManualCapacityScaleTopology
scale
in interface ManualCapacityScaleTopology
ManualCapacityScaleConfig
,
ManualCapacityScaleConfigurer
public ElasticSpaceDeployment name(String name)
ElasticDeploymentTopology
name
in interface ElasticDeploymentTopology
name
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment addContextProperty(String key, String value)
ElasticDeploymentTopology
${...}
defined within a
processing unit configuration.addContextProperty
in interface ElasticDeploymentTopology
addContextProperty
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment secured(boolean secured)
ProcessingUnitDeploymentTopology
secured
in interface ProcessingUnitDeploymentTopology
secured
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment userDetails(String userName, String password)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment useScriptToStartContainer()
AbstractElasticProcessingUnitDeployment
GridServiceContainer
to be started using a
script and not a pure Java process.useScriptToStartContainer
in interface ElasticDeploymentTopology
useScriptToStartContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment overrideCommandLineArguments()
AbstractElasticProcessingUnitDeployment
AbstractElasticProcessingUnitDeployment.commandLineArgument(String)
to override all the
vm arguments that the JVM will start by default with.overrideCommandLineArguments
in interface ElasticDeploymentTopology
overrideCommandLineArguments
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment commandLineArgument(String commandLineArgument)
AbstractElasticProcessingUnitDeployment
-Xmx512m
.commandLineArgument
in interface ElasticDeploymentTopology
commandLineArgument
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment addCommandLineArgument(String commandLineArgument)
ElasticDeploymentTopology
-Xmx512m
.addCommandLineArgument
in interface ElasticDeploymentTopology
public ElasticSpaceDeployment environmentVariable(String name, String value)
AbstractElasticProcessingUnitDeployment
environmentVariable
in interface ElasticDeploymentTopology
environmentVariable
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment addEnvironmentVariable(String name, String value)
ElasticDeploymentTopology
addEnvironmentVariable
in interface ElasticDeploymentTopology
public ElasticSpaceDeployment highlyAvailable(boolean highlyAvailable)
ElasticStatefulDeploymentTopology
highlyAvailable
in interface ElasticStatefulDeploymentTopology
public ElasticSpaceDeployment dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
ElasticDeploymentTopology
The 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 ElasticDeploymentTopology
dedicatedMachineProvisioning
in class AbstractElasticProcessingUnitDeployment
ElasticDeploymentTopology.sharedMachineProvisioning(String, ElasticMachineProvisioningConfig)
public ElasticSpaceDeployment sharedMachineProvisioning(String sharingId, ElasticMachineProvisioningConfig config)
ElasticDeploymentTopology
The 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 ElasticDeploymentTopology
ElasticDeploymentTopology.dedicatedMachineProvisioning(ElasticMachineProvisioningConfig)
public ElasticSpaceDeployment publicMachineProvisioning(ElasticMachineProvisioningConfig config)
ElasticDeploymentTopology
The 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 ElasticDeploymentTopology
publicMachineProvisioning
in class AbstractElasticProcessingUnitDeployment
public ElasticSpaceDeployment numberOfBackupsPerPartition(int numberOfBackupsPerPartition)
AdvancedStatefulDeploymentTopology
numberOfBackupsPerPartition
in interface AdvancedStatefulDeploymentTopology
public ElasticSpaceDeployment numberOfPartitions(int numberOfPartitions)
AdvancedStatefulDeploymentTopology
ElasticStatefulDeploymentTopology.maxMemoryCapacity(String)
and ElasticStatefulDeploymentTopology.maxNumberOfCpuCores(int)
.
This is an advanced property.numberOfPartitions
in interface AdvancedStatefulDeploymentTopology
@Deprecated public ElasticSpaceDeployment minNumberOfCpuCoresPerMachine(double minNumberOfCpuCoresPerMachine)
public ElasticSpaceDeployment singleMachineDeployment()
AdvancedStatefulDeploymentTopology
singleMachineDeployment
in interface AdvancedStatefulDeploymentTopology
public ElasticSpaceDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopology
addDependency
in interface ProcessingUnitDeploymentTopology
public ElasticSpaceDeployment addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopology
addDependencies
in interface ProcessingUnitDeploymentTopology
addDependencies
in class AbstractElasticProcessingUnitDeployment
ProcessingUnitDeploymentDependenciesConfigurer
public ElasticSpaceConfig create()
ProcessingUnitDeploymentTopology
create
in interface ProcessingUnitDeploymentTopology
public ElasticSpaceConfig getConfig()
getConfig
in class AbstractElasticProcessingUnitDeployment
Copyright © GigaSpaces.