public class MemcachedDeployment extends Object implements ProcessingUnitDeploymentTopology
[GS
ROOT]/deploy/templates/memcached
).Constructor and Description |
---|
MemcachedDeployment(String spaceUrl)
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 |
---|---|
MemcachedDeployment |
addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> deploymentDependencies)
Postpones deployment of processing unit instances until the specified dependencies are met.
|
MemcachedDeployment |
addDependency(String requiredProcessingUnitName)
Postpones deployment of processing unit instances deployment until the specified processing
unit deployment is complete.
|
MemcachedDeployment |
addZone(String zone)
Adds a zone where the processing unit is allowed to be deployed on.
|
MemcachedDeployment |
clusterSchema(String clusterSchema)
Sets the cluster schema of the Space.
|
ProcessingUnitConfigHolder |
create()
Converts this fluent API object to a lazy implementation of ProcessingUnitConfig
|
String |
getSpaceUrl()
Returns the Space url of the config.
|
MemcachedDeployment |
maxInstancesPerMachine(int maxInstancesPerMachine)
Sets the maximum number of instances per machine.
|
MemcachedDeployment |
maxInstancesPerVM(int maxInstancesPerVM)
Sets the maximum number of instances per virtual machine.
|
MemcachedDeployment |
maxInstancesPerZone(String zone,
int maxInstancesPerZone)
Sets the maximum number of instances per zone.
|
MemcachedDeployment |
numberOfBackups(int numberOfBackups)
Sets the number of backups per instance of the space config.
|
MemcachedDeployment |
numberOfInstances(int numberOfInstances)
Sets the number of instances of the space config.
|
MemcachedDeployment |
partitioned(int numberOfParitions,
int numberOfBackups)
A convenient method allowing to easily configure the space deployment to deploy a Partitioned
topology with
numberOfParitions instances each with
numberOfBackups . |
MemcachedDeployment |
replicated(boolean async,
int numberOfInstances)
A convenient method allowing to easily configure the space deployment to deploy a replicated
(either sync or async) topology with
numberOfInstances instances. |
MemcachedDeployment |
requiresIsolation(boolean requiresIsolation)
Sets the requires Isolation.If true only a single service can run in this virtual machine.
|
MemcachedDeployment |
secured(boolean secured)
Will deploy a secured space.
|
MemcachedDeployment |
setContextProperty(String key,
String value)
Sets a context deploy time property overriding any
${...} defined within a
processing unit configuration. |
MemcachedDeployment |
slaLocation(File slaLocation)
Sets an external SLA definition location to be loaded.
|
MemcachedDeployment |
slaLocation(String slaLocation)
Sets an external SLA definition location to be loaded.
|
MemcachedDeployment |
userDetails(String userName,
String password)
Sets the username and password (effectively making the processing unit secured) for the
processing unit config.
|
MemcachedDeployment |
userDetails(UserDetails userDetails)
Advance: Sets the security user details for authentication and autherization of the
processing unit.
|
public MemcachedDeployment(String spaceUrl)
public String getSpaceUrl()
public MemcachedDeployment partitioned(int numberOfParitions, int numberOfBackups)
numberOfParitions
instances each with
numberOfBackups
.
Exactly the same like calling clusterSchema("partitioned")
, followed by
numberOfInstances(numberOfParitions)
and numberOfBackups(numberOfBackups)
.
numberOfParitions
- The number of partitionsnumberOfBackups
- The number of backupspublic MemcachedDeployment replicated(boolean async, int numberOfInstances)
numberOfInstances
instances.
Exactly the same like calling clusterSchema("sync_replicated")
or
clusterSchema("async_replicated")
, followed by numberOfInstances(numberOfInstances)
and numberOfBackups(0)
.
numberOfInstances
- The number of instances to form the replicated spacepublic MemcachedDeployment clusterSchema(String clusterSchema)
partitioned(int, int)
public MemcachedDeployment numberOfInstances(int numberOfInstances)
public MemcachedDeployment numberOfBackups(int numberOfBackups)
public MemcachedDeployment maxInstancesPerVM(int maxInstancesPerVM)
On partitioned topology with backups topology, controls that a primary and a backup won't
run on the same virtual machine if set to 1
.
On a non partitioned with backups topology, controls the maximum number of instances running on the same virtual machine.
public MemcachedDeployment maxInstancesPerMachine(int maxInstancesPerMachine)
On partitioned topology with backups topology, controls that a primary and a backup won't
run on the same machine if set to 1
.
On a non partitioned with backups topology, controls the maximum number of instances running on the same machine.
public MemcachedDeployment requiresIsolation(boolean requiresIsolation)
public MemcachedDeployment maxInstancesPerZone(String zone, int maxInstancesPerZone)
On partitioned topology with backups topology, controls that a primary and a backup won't
run on the same zone if set to 1
. Note, for each zone this will have to be set.
On a non partitioned with backups topology, controls the maximum number of instances running on the same zone.
public MemcachedDeployment addZone(String zone)
public MemcachedDeployment setContextProperty(String key, String value)
${...}
defined within a
processing unit configuration.public MemcachedDeployment secured(boolean secured)
secured
in interface ProcessingUnitDeploymentTopology
public MemcachedDeployment userDetails(UserDetails userDetails)
userDetails
in interface ProcessingUnitDeploymentTopology
public MemcachedDeployment userDetails(String userName, String password)
userDetails
in interface ProcessingUnitDeploymentTopology
public MemcachedDeployment slaLocation(String slaLocation)
public MemcachedDeployment slaLocation(File slaLocation)
public MemcachedDeployment addDependencies(ProcessingUnitDetailedDependencies<? extends ProcessingUnitDependency> deploymentDependencies)
addDependencies
in interface ProcessingUnitDeploymentTopology
ProcessingUnitDeploymentDependenciesConfigurer
public MemcachedDeployment addDependency(String requiredProcessingUnitName)
addDependency
in interface ProcessingUnitDeploymentTopology
public ProcessingUnitConfigHolder create()
ProcessingUnitDeploymentTopology
create
in interface ProcessingUnitDeploymentTopology
Copyright © GigaSpaces.