org.openspaces.pu.container.support
Class ClusterInfoParser
java.lang.Object
org.openspaces.pu.container.support.ClusterInfoParser
public abstract class ClusterInfoParser
- extends Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLUSTER_PARAMETER_TOTALMEMBERS
public static final String CLUSTER_PARAMETER_TOTALMEMBERS
- See Also:
- Constant Field Values
CLUSTER_PARAMETER_INSTANCEID
public static final String CLUSTER_PARAMETER_INSTANCEID
- See Also:
- Constant Field Values
CLUSTER_PARAMETER_BACKUPID
public static final String CLUSTER_PARAMETER_BACKUPID
- See Also:
- Constant Field Values
CLUSTER_PARAMETER_CLUSTERSCHEMA
public static final String CLUSTER_PARAMETER_CLUSTERSCHEMA
- See Also:
- Constant Field Values
ClusterInfoParser
public ClusterInfoParser()
parse
public static ClusterInfo parse(CommandLineParser.Parameter[] params)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
guessSchema
public static void guessSchema(ClusterInfo clusterInfo)
- 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 be
partitioned_sync2backup
.
Copyright © GigaSpaces.