Class ClusterInfoParser
java.lang.Object
org.openspaces.pu.container.support.ClusterInfoParser
ClusterInfo parser that parses -cluster parameter and
transforms it into a cluster info.
The following arguments to the -cluster parameters are allowed:
total_members=1,1 (1,1 is an example value), id=1 (1 is an example
value), backup_id=1 (1 is an example value) and schema=primary_backup
(primary_backup is an example value).
The container allows not to specify explicit instanceId or backupId.
In this case, it will create several processing units that run embedded within the JVM.
- Author:
- kimchy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidguessSchema(ClusterInfo clusterInfo) Guess the cluster schema if not set.static ClusterInfostatic ClusterInfoparse(CommandLineParser.Parameter[] params)
-
Field Details
-
CLUSTER_PARAMETER_TOTALMEMBERS
- See Also:
-
CLUSTER_PARAMETER_INSTANCEID
- See Also:
-
CLUSTER_PARAMETER_BACKUPID
- See Also:
-
CLUSTER_PARAMETER_CLUSTERSCHEMA
- See Also:
-
-
Constructor Details
-
ClusterInfoParser
public ClusterInfoParser()
-
-
Method Details
-
parse
public static ClusterInfo parse(CommandLineParser.Parameter[] params) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
parse
-
guessSchema
Guess the cluster schema if not set. If the number of instances is higher than 1 and the number of backups it higher than 0, the cluster schema will bepartitioned.
-