|
GigaSpaces XAP 7.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.admin.esm.deployment.InternalElasticDataGridDeployment org.openspaces.admin.esm.deployment.ElasticDataGridDeployment
public class ElasticDataGridDeployment
An elastic data-grid deployment descriptor for deploying a plain data-grid.
The data-grid context properties can be modified by addContextProperty(String, String)
.
The default is a Highly-available data-grid, consisting of 1-10 gigabytes of memory spanned
across a partitioned cluster of 10,1. Each Grid Service Container JVM is set to -Xms512m and
-Xmx512m.
Disclaimer: This interface and the elastic data grid functionality is provided as a technology preview in XAP 7.1. As such, it is subject to API and behavior changes in the next XAP releases without going through the usual deprecation process of the XAP API.
Constructor Summary | |
---|---|
ElasticDataGridDeployment(String dataGridName)
Constructs an Elastic data-grid with the specified name. |
Method Summary | |
---|---|
ElasticDataGridDeployment |
addContextProperty(String key,
String value)
Adds a context deploy time property overriding any ${...} |
ElasticDataGridDeployment |
addSla(SLA sla)
Adds an SLA to monitor and auto-scale if necessary. |
ElasticDataGridDeployment |
capacity(String minMemory,
String maxMemory)
Set the memory capacity growth of this data grid. |
ElasticDataGridDeployment |
dedicatedDeploymentIsolation()
Restrict this data-grid deployment to machines not shared by other deployments. |
ElasticDataGridDeployment |
elasticScaleHandler(ElasticScaleHandlerConfig config)
Set an ElasticScaleHandler implementation configuration. |
Properties |
getContextProperties()
|
ElasticScaleHandlerConfig |
getElasticScaleHandlerConfig()
|
ElasticDataGridDeployment |
highlyAvailable(boolean enabled)
Set the availability of the data grid. |
ElasticDataGridDeployment |
initialJavaHeapSize(String size)
Sets the initial Java heap size (the JVM -Xms argument) of a container hosting a processing unit. |
ElasticDataGridDeployment |
maximumJavaHeapSize(String size)
Sets the maximum Java heap size (the JVM -Xmx argument) of a container hosting a processing unit. |
ElasticDataGridDeployment |
publicDeploymentIsolation()
Allow this data-grid deployment to co-exist and share the same machine resources with other deployments. |
ElasticDataGridDeployment |
setPartitions(int numberOfPartitions)
Sets the number of partitions to use (number of primaries if highly available). |
ElasticDataGridDeployment |
sharedDeploymentIsolation(String tenant)
Allow this data-grid deployment to co-exist and share the same machine resources with other deployments of this tenant - only. |
ElasticDataGridDeployment |
vmInputArgument(String vmInputArgument)
Adds a single JVM level argument to the container hosting a processing unit. |
Methods inherited from class org.openspaces.admin.esm.deployment.InternalElasticDataGridDeployment |
---|
getDataGridName, getDeploymentContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElasticDataGridDeployment(String dataGridName)
dataGridName
- The data-grid name.Method Detail |
---|
public ElasticDataGridDeployment dedicatedDeploymentIsolation()
public ElasticDataGridDeployment publicDeploymentIsolation()
public ElasticDataGridDeployment sharedDeploymentIsolation(String tenant)
tenant
- A name representing the tenant.public ElasticDataGridDeployment capacity(String minMemory, String maxMemory)
minMemory
- minimum memory initially held for this data grid; Default "1g".maxMemory
- maximum memory to allocate for this data grid; Default "10g".public ElasticDataGridDeployment highlyAvailable(boolean enabled)
enabled
- true
if data grid is highly available; false if the data is
recoverable from some storage. Default is true
.public ElasticDataGridDeployment initialJavaHeapSize(String size)
size
- The heap size in kilobytes (k), megabytes (m), gigabytes (g); Default "512m".public ElasticDataGridDeployment maximumJavaHeapSize(String size)
If set below the initialJavaHeapSize(String)
then the -Xms setting will correspond
to the -Xmx setting.
size
- The heap size in kilobytes (k), megabytes (m), gigabytes (g); Default "512m".public ElasticDataGridDeployment vmInputArgument(String vmInputArgument)
initialJavaHeapSize(String)
and maximumJavaHeapSize(String)
already define
the -Xms and -Xmx vm arguments.
public ElasticDataGridDeployment addContextProperty(String key, String value)
${...}
defined within a processing
unit configuration.
public ElasticDataGridDeployment setPartitions(int numberOfPartitions)
capacity(String, String)
parameters.
numberOfPartitions
- The number of partitions required.public Properties getContextProperties()
public ElasticDataGridDeployment addSla(SLA sla)
sla
- an SLA descriptorMemorySla
public ElasticDataGridDeployment elasticScaleHandler(ElasticScaleHandlerConfig config)
ElasticScaleHandler
implementation configuration. The scale-handler (and its
state) is per-deployment. The scale-handler API will be called upon when need of a GSC (either
on an available machine, or a new machine)
config
- The elastic scale handler configurationpublic ElasticScaleHandlerConfig getElasticScaleHandlerConfig()
|
GigaSpaces XAP 7.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |