@Deprecated public class ElasticStatelessProcessingUnitDeployment extends AbstractElasticProcessingUnitDeployment implements ElasticStatelessDeploymentTopology<ProcessingUnitDependency>
Constructor and Description |
---|
ElasticStatelessProcessingUnitDeployment(File processingUnit)
Deprecated.
Constructs a stateless processing unit deployment based on the specified processing unit file
path (points either to a processing unit jar/zip file or a directory).
|
ElasticStatelessProcessingUnitDeployment(String processingUnit)
Deprecated.
Constructs a stateless processing unit deployment based on the specified processing unit name
(should exists under the
[GS ROOT]/deploy directory. |
Modifier and Type | Method and Description |
---|---|
ElasticStatelessProcessingUnitDeployment |
addCommandLineArgument(String vmInputArgument)
Deprecated.
Will add a JVM level argument when the process is executed using pure JVM.
|
ElasticStatelessProcessingUnitDeployment |
addContextProperty(String key,
String value)
Deprecated.
Defines a context deploy time property overriding any
${...} defined within a
processing unit configuration. |
ElasticStatelessProcessingUnitDeployment |
addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
Deprecated.
Postpones deployment of processing unit instances until the specified dependencies are met.
|
ElasticStatelessProcessingUnitDeployment |
addDependency(String requiredProcessingUnitName)
Deprecated.
Postpones deployment of processing unit instances deployment until the specified processing
unit deployment is complete.
|
ElasticStatelessProcessingUnitDeployment |
addEnvironmentVariable(String name,
String value)
Deprecated.
Defines an environment variable that will be passed to forked process.
|
ElasticStatelessProcessingUnitDeployment |
commandLineArgument(String vmInputArgument)
Deprecated.
Will add a JVM level argument when the process is executed using pure JVM.
|
ElasticStatelessProcessingUnitConfig |
create()
Deprecated.
Converts this fluent API object to a lazy implementation of ProcessingUnitConfig
|
ElasticStatelessProcessingUnitDeployment |
dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticStatelessProcessingUnitDeployment |
environmentVariable(String name,
String value)
Deprecated.
Sets an environment variable that will be passed to forked process.
|
protected ElasticStatelessProcessingUnitConfig |
getConfig()
Deprecated.
|
ElasticStatelessProcessingUnitDeployment |
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")
|
ElasticStatelessProcessingUnitDeployment |
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")
|
ElasticStatelessProcessingUnitDeployment |
name(String name)
Deprecated.
Sets the processing unit name that will be deployed.
|
ElasticStatelessProcessingUnitDeployment |
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. |
ElasticStatelessProcessingUnitDeployment |
publicMachineProvisioning(ElasticMachineProvisioningConfig config)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticStatelessProcessingUnitDeployment |
scale(AutomaticCapacityScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticStatelessProcessingUnitDeployment |
scale(EagerScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticStatelessProcessingUnitDeployment |
scale(ManualCapacityPerZonesScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticStatelessProcessingUnitDeployment |
scale(ManualCapacityScaleConfig strategy)
Deprecated.
Enables the specified scale strategy, and disables all other scale strategies.
|
ElasticStatelessProcessingUnitDeployment |
secured(boolean secured)
Deprecated.
Will deploy a secured processing unit.
|
ElasticStatelessProcessingUnitDeployment |
setContextProperty(String key,
String value)
Deprecated.
|
ElasticStatelessProcessingUnitDeployment |
sharedMachineProvisioning(String sharingId,
ElasticMachineProvisioningConfig config)
Deprecated.
Configure the server side bean that starts and stops machines automatically.
|
ElasticStatelessProcessingUnitDeployment |
userDetails(String userName,
String password)
Deprecated.
Advanced: Sets the security user details for authentication and authorization of the
processing unit.
|
ElasticStatelessProcessingUnitDeployment |
userDetails(UserDetails userDetails)
Deprecated.
Advanced: Sets the security user details for authentication and authorization of the
processing unit.
|
ElasticStatelessProcessingUnitDeployment |
useScriptToStartContainer()
Deprecated.
Will cause the
GridServiceContainer to be started using a
script and not a pure Java process. |
addContextPropertyDefault, getElasticProperties, scale, sharedMachineProvisioning
public ElasticStatelessProcessingUnitDeployment(String processingUnit)
[GS ROOT]/deploy
directory.public ElasticStatelessProcessingUnitDeployment(File processingUnit)
public ElasticStatelessProcessingUnitDeployment scale(ManualCapacityPerZonesScaleConfig strategy)
ManualCapacityPerZonesScaleTopology
scale
in interface ManualCapacityPerZonesScaleTopology
ManualCapacityScaleConfig
,
ManualCapacityScaleConfigurer
public ElasticStatelessProcessingUnitDeployment scale(ManualCapacityScaleConfig strategy)
ManualCapacityScaleTopology
scale
in interface ManualCapacityScaleTopology
ManualCapacityScaleConfig
,
ManualCapacityScaleConfigurer
public ElasticStatelessProcessingUnitDeployment scale(EagerScaleConfig strategy)
EagerScaleTopology
scale
in interface EagerScaleTopology
EagerScaleConfig
,
EagerScaleConfigurer
public ElasticStatelessProcessingUnitDeployment scale(AutomaticCapacityScaleConfig strategy)
AutomaticCapacityScaleTopology
scale
in interface AutomaticCapacityScaleTopology
AutomaticCapacityScaleConfig
,
AutomaticCapacityScaleConfigurer
public ElasticStatelessProcessingUnitDeployment name(String name)
ElasticDeploymentTopology
name
in interface ElasticDeploymentTopology
name
in class AbstractElasticProcessingUnitDeployment
@Deprecated public ElasticStatelessProcessingUnitDeployment setContextProperty(String key, String value)
addContextProperty(String, String)
public ElasticStatelessProcessingUnitDeployment secured(boolean secured)
ProcessingUnitDeploymentTopology
secured
in interface ProcessingUnitDeploymentTopology
secured
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment userDetails(String userName, String password)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment useScriptToStartContainer()
AbstractElasticProcessingUnitDeployment
GridServiceContainer
to be started using a
script and not a pure Java process.useScriptToStartContainer
in interface ElasticDeploymentTopology
useScriptToStartContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment 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 ElasticStatelessProcessingUnitDeployment commandLineArgument(String vmInputArgument)
AbstractElasticProcessingUnitDeployment
-Xmx512m
.commandLineArgument
in interface ElasticDeploymentTopology
commandLineArgument
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment environmentVariable(String name, String value)
AbstractElasticProcessingUnitDeployment
environmentVariable
in interface ElasticDeploymentTopology
environmentVariable
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment addCommandLineArgument(String vmInputArgument)
ElasticDeploymentTopology
-Xmx512m
.addCommandLineArgument
in interface ElasticDeploymentTopology
public ElasticStatelessProcessingUnitDeployment addEnvironmentVariable(String name, String value)
ElasticDeploymentTopology
addEnvironmentVariable
in interface ElasticDeploymentTopology
public ElasticStatelessProcessingUnitDeployment addContextProperty(String key, String value)
ElasticDeploymentTopology
${...}
defined within a
processing unit configuration.addContextProperty
in interface ElasticDeploymentTopology
addContextProperty
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment 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 ElasticStatelessProcessingUnitDeployment 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 ElasticStatelessProcessingUnitDeployment 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 ElasticStatelessProcessingUnitDeployment memoryCapacityPerContainer(int memoryCapacityPerContainer, MemoryUnit unit)
ElasticDeploymentTopology
memoryCapacityPerContainer
in interface ElasticDeploymentTopology
memoryCapacityPerContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopology
memoryCapacityPerContainer
in interface ElasticDeploymentTopology
memoryCapacityPerContainer
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopology
addDependency
in interface ProcessingUnitDeploymentTopology
public ElasticStatelessProcessingUnitDeployment addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopology
addDependencies
in interface ProcessingUnitDeploymentTopology
addDependencies
in class AbstractElasticProcessingUnitDeployment
ProcessingUnitDeploymentDependenciesConfigurer
protected ElasticStatelessProcessingUnitConfig getConfig()
getConfig
in class AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitConfig create()
ProcessingUnitDeploymentTopology
create
in interface ProcessingUnitDeploymentTopology
Copyright © GigaSpaces.