|
GigaSpaces XAP 9.7.2 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ManualCapacityPerZonesScaleTopologyManualCapacityScaleConfig,
ManualCapacityScaleConfigurerpublic ElasticStatelessProcessingUnitDeployment scale(ManualCapacityScaleConfig strategy)
ManualCapacityScaleTopology
scale in interface ManualCapacityScaleTopologyManualCapacityScaleConfig,
ManualCapacityScaleConfigurerpublic ElasticStatelessProcessingUnitDeployment scale(EagerScaleConfig strategy)
EagerScaleTopology
scale in interface EagerScaleTopologyEagerScaleConfig,
EagerScaleConfigurerpublic ElasticStatelessProcessingUnitDeployment scale(AutomaticCapacityScaleConfig strategy)
AutomaticCapacityScaleTopology
scale in interface AutomaticCapacityScaleTopologyAutomaticCapacityScaleConfig,
AutomaticCapacityScaleConfigurerpublic ElasticStatelessProcessingUnitDeployment name(String name)
ElasticDeploymentTopology
name in interface ElasticDeploymentTopologyname 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 ProcessingUnitDeploymentTopologysecured in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment userDetails(UserDetails userDetails)
ProcessingUnitDeploymentTopology
userDetails in interface ProcessingUnitDeploymentTopologyuserDetails in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment userDetails(String userName,
String password)
ProcessingUnitDeploymentTopology
userDetails in interface ProcessingUnitDeploymentTopologyuserDetails in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment useScriptToStartContainer()
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentGridServiceContainer to be started using a script
and not a pure Java process.
useScriptToStartContainer in interface ElasticDeploymentTopologyuseScriptToStartContainer in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment overrideCommandLineArguments()
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentAbstractElasticProcessingUnitDeployment.commandLineArgument(String) to override all the vm arguments
that the JVM will start by default with.
overrideCommandLineArguments in interface ElasticDeploymentTopologyoverrideCommandLineArguments in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment commandLineArgument(String vmInputArgument)
org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment-Xmx512m.
commandLineArgument in interface ElasticDeploymentTopologycommandLineArgument 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 ElasticDeploymentTopologyenvironmentVariable in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic 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 ElasticDeploymentTopologyaddContextProperty in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment 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 org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentElasticDeploymentTopology.sharedMachineProvisioning(String, ElasticMachineProvisioningConfig)public ElasticStatelessProcessingUnitDeployment 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 org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeployment
public ElasticStatelessProcessingUnitDeployment 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 ElasticStatelessProcessingUnitDeployment memoryCapacityPerContainer(int memoryCapacityPerContainer,
MemoryUnit unit)
ElasticDeploymentTopology
memoryCapacityPerContainer in interface ElasticDeploymentTopologymemoryCapacityPerContainer in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment memoryCapacityPerContainer(String memoryCapacityPerContainer)
ElasticDeploymentTopology
memoryCapacityPerContainer in interface ElasticDeploymentTopologymemoryCapacityPerContainer in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic ElasticStatelessProcessingUnitDeployment addDependency(String requiredProcessingUnitName)
ProcessingUnitDeploymentTopology
addDependency in interface ProcessingUnitDeploymentTopologypublic ElasticStatelessProcessingUnitDeployment addDependencies(org.openspaces.admin.internal.pu.dependency.ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> detailedDependencies)
ProcessingUnitDeploymentTopology
addDependencies in interface ProcessingUnitDeploymentTopologyaddDependencies in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentProcessingUnitDeploymentDependenciesConfigurerprotected ElasticStatelessProcessingUnitConfig getConfig()
getConfig in class org.openspaces.admin.internal.pu.elastic.AbstractElasticProcessingUnitDeploymentpublic 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 | |||||||||