|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment org.openspaces.admin.pu.elastic.ElasticStatelessProcessingUnitDeployment
public class ElasticStatelessProcessingUnitDeployment
Defines an elastic processing unit deployment that does not contain a space.
Constructor Summary | |
---|---|
ElasticStatelessProcessingUnitDeployment(File processingUnit)
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)
Constructs a stateless processing unit deployment based on the specified processing unit name (should exists under the [GS ROOT]/deploy directory. |
Method Summary | |
---|---|
ElasticStatelessProcessingUnitDeployment |
addCommandLineArgument(String vmInputArgument)
Will add a JVM level argument when the process is executed using pure JVM. |
ElasticStatelessProcessingUnitDeployment |
addContextProperty(String key,
String value)
Defines a context deploy time property overriding any ${...} |
ElasticStatelessProcessingUnitDeployment |
addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
Postpones deployment of processing unit instances until the specified dependencies are met. |
ElasticStatelessProcessingUnitDeployment |
addDependency(String requiredProcessingUnitName)
Postpones deployment of processing unit instances deployment until the specified processing unit deployment is complete. |
ElasticStatelessProcessingUnitDeployment |
addEnvironmentVariable(String name,
String value)
Defines an environment variable that will be passed to forked process. |
ElasticStatelessProcessingUnitDeployment |
commandLineArgument(String vmInputArgument)
Will add a JVM level argument when the process is executed using pure JVM. |
ElasticStatelessProcessingUnitConfig |
create()
Converts this fluent API object to a lazy implementation of ProcessingUnitConfig |
ElasticStatelessProcessingUnitDeployment |
dedicatedMachineProvisioning(ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically. |
ElasticStatelessProcessingUnitDeployment |
environmentVariable(String name,
String value)
Sets an environment variable that will be passed to forked process. |
protected ElasticStatelessProcessingUnitConfig |
getConfig()
|
ElasticStatelessProcessingUnitDeployment |
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") |
ElasticStatelessProcessingUnitDeployment |
memoryCapacityPerContainer(String memoryCapacityPerContainer)
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)
Sets the processing unit name that will be deployed. |
ElasticStatelessProcessingUnitDeployment |
overrideCommandLineArguments()
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)
Configure the server side bean that starts and stops machines automatically. |
ElasticStatelessProcessingUnitDeployment |
scale(AutomaticCapacityScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticStatelessProcessingUnitDeployment |
scale(EagerScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticStatelessProcessingUnitDeployment |
scale(ManualCapacityPerZonesScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticStatelessProcessingUnitDeployment |
scale(ManualCapacityScaleConfig strategy)
Enables the specified scale strategy, and disables all other scale strategies. |
ElasticStatelessProcessingUnitDeployment |
secured(boolean secured)
Will deploy a secured processing unit. |
ElasticStatelessProcessingUnitDeployment |
setContextProperty(String key,
String value)
Deprecated. |
ElasticStatelessProcessingUnitDeployment |
sharedMachineProvisioning(String sharingId,
ElasticMachineProvisioningConfig config)
Configure the server side bean that starts and stops machines automatically. |
ElasticStatelessProcessingUnitDeployment |
userDetails(String userName,
String password)
Advanced: Sets the security user details for authentication and authorization of the processing unit. |
ElasticStatelessProcessingUnitDeployment |
userDetails(UserDetails userDetails)
Advanced: Sets the security user details for authentication and authorization of the processing unit. |
ElasticStatelessProcessingUnitDeployment |
useScriptToStartContainer()
Will cause the GridServiceContainer to be started using a script
and not a pure Java process. |
Methods inherited from class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment |
---|
addContextPropertyDefault, getElasticProperties, scale, sharedMachineProvisioning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElasticStatelessProcessingUnitDeployment(String processingUnit)
[GS ROOT]/deploy
directory.
public ElasticStatelessProcessingUnitDeployment(File processingUnit)
Method Detail |
---|
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 org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment userDetails(String userName, String password)
ProcessingUnitDeploymentTopology
userDetails
in interface ProcessingUnitDeploymentTopology
userDetails
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment useScriptToStartContainer()
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
GridServiceContainer
to be started using a script
and not a pure Java process.
useScriptToStartContainer
in interface ElasticDeploymentTopology
useScriptToStartContainer
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment overrideCommandLineArguments()
org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment commandLineArgument(String vmInputArgument)
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
-Xmx512m
.
commandLineArgument
in interface ElasticDeploymentTopology
commandLineArgument
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment environmentVariable(String name, String value)
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
environmentVariable
in interface ElasticDeploymentTopology
environmentVariable
in class org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.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 org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopology
memoryCapacityPerContainer
in interface ElasticDeploymentTopology
memoryCapacityPerContainer
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopology
addDependency
in interface ProcessingUnitDeploymentTopology
public ElasticStatelessProcessingUnitDeployment addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopology
addDependencies
in interface ProcessingUnitDeploymentTopology
addDependencies
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
ProcessingUnitDeploymentDependenciesConfigurer
protected ElasticStatelessProcessingUnitConfig getConfig()
getConfig
in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitConfig create()
ProcessingUnitDeploymentTopology
create
in interface ProcessingUnitDeploymentTopology
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |