GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.support
Class ClusterInfoParser

java.lang.Object
  extended by 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

Field Summary
static String CLUSTER_PARAMETER_BACKUPID
           
static String CLUSTER_PARAMETER_CLUSTERSCHEMA
           
static String CLUSTER_PARAMETER_INSTANCEID
           
static String CLUSTER_PARAMETER_TOTALMEMBERS
           
 
Constructor Summary
ClusterInfoParser()
           
 
Method Summary
static void guessSchema(ClusterInfo clusterInfo)
          Guess the cluster schema if not set.
static ClusterInfo parse(CommandLineParser.Parameter[] params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ClusterInfoParser

public ClusterInfoParser()
Method Detail

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.


GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.