Neo4j Enterprise

org.neo4j.kernel
Class HaConfig

java.lang.Object
  extended by org.neo4j.kernel.HaConfig

public class HaConfig
extends Object


Nested Class Summary
static class HaConfig.SlaveUpdateMode
           
 
Field Summary
static String CONFIG_DEFAULT_HA_CLUSTER_NAME
           
static int CONFIG_DEFAULT_PORT
           
static long CONFIG_DEFAULT_PULL_INTERVAL
           
static String CONFIG_KEY_ALLOW_INIT_CLUSTER
           
static String CONFIG_KEY_BRANCHED_DATA_POLICY
           
static String CONFIG_KEY_CLUSTER_NAME
           
static String CONFIG_KEY_COORDINATOR_FETCH_INFO_TIMEOUT
           
static String CONFIG_KEY_COORDINATORS
           
static String CONFIG_KEY_LOCK_READ_TIMEOUT
           
static String CONFIG_KEY_MAX_CONCURRENT_CHANNELS_PER_SLAVE
           
static String CONFIG_KEY_MAX_CONCURRENT_TRANSACTIONS_ON_MASTER
           
static String CONFIG_KEY_OLD_COORDINATORS
           
static String CONFIG_KEY_OLD_SERVER_ID
           
static String CONFIG_KEY_PULL_INTERVAL
           
static String CONFIG_KEY_READ_TIMEOUT
           
static String CONFIG_KEY_SERVER
           
static String CONFIG_KEY_SERVER_ID
           
static String CONFIG_KEY_SLAVE_COORDINATOR_UPDATE_MODE
           
 
Constructor Summary
HaConfig()
           
 
Method Summary
static boolean getAllowInitFromConfig(Map<?,?> config)
           
static int getBackupPortFromConfig(Map<?,?> config)
           
static org.neo4j.kernel.HAGraphDb.BranchedDataPolicy getBranchedDataPolicyFromConfig(Map<String,String> config)
           
static int getClientLockReadTimeoutFromConfig(Map<String,String> config)
           
static int getClientReadTimeoutFromConfig(Map<String,String> config)
           
static String getClusterNameFromConfig(Map<String,String> config)
           
static String getConfigValue(Map<String,String> config, String... oneKeyOutOf)
           
static String getCoordinatorsFromConfig(Map<String,String> config)
           
static String getHaServerFromConfig(Map<String,String> config)
           
static int getMachineIdFromConfig(Map<String,String> config)
           
static int getMaxConcurrentChannelsPerSlaveFromConfig(Map<String,String> config)
           
static int getMaxConcurrentTransactionsOnMasterFromConfig(Map<String,String> config)
           
static long getPullIntervalFromConfig(Map<String,String> config)
           
static HaConfig.SlaveUpdateMode getSlaveUpdateModeFromConfig(Map<String,String> config)
           
static Map<String,String> loadConfigurations(String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_KEY_OLD_SERVER_ID

public static final String CONFIG_KEY_OLD_SERVER_ID
See Also:
Constant Field Values

CONFIG_KEY_SERVER_ID

public static final String CONFIG_KEY_SERVER_ID
See Also:
Constant Field Values

CONFIG_KEY_OLD_COORDINATORS

public static final String CONFIG_KEY_OLD_COORDINATORS
See Also:
Constant Field Values

CONFIG_KEY_COORDINATORS

public static final String CONFIG_KEY_COORDINATORS
See Also:
Constant Field Values

CONFIG_KEY_SERVER

public static final String CONFIG_KEY_SERVER
See Also:
Constant Field Values

CONFIG_KEY_CLUSTER_NAME

public static final String CONFIG_KEY_CLUSTER_NAME
See Also:
Constant Field Values

CONFIG_KEY_PULL_INTERVAL

public static final String CONFIG_KEY_PULL_INTERVAL
See Also:
Constant Field Values

CONFIG_KEY_ALLOW_INIT_CLUSTER

public static final String CONFIG_KEY_ALLOW_INIT_CLUSTER
See Also:
Constant Field Values

CONFIG_KEY_MAX_CONCURRENT_CHANNELS_PER_SLAVE

public static final String CONFIG_KEY_MAX_CONCURRENT_CHANNELS_PER_SLAVE
See Also:
Constant Field Values

CONFIG_KEY_BRANCHED_DATA_POLICY

public static final String CONFIG_KEY_BRANCHED_DATA_POLICY
See Also:
Constant Field Values

CONFIG_KEY_READ_TIMEOUT

public static final String CONFIG_KEY_READ_TIMEOUT
See Also:
Constant Field Values

CONFIG_KEY_SLAVE_COORDINATOR_UPDATE_MODE

public static final String CONFIG_KEY_SLAVE_COORDINATOR_UPDATE_MODE
See Also:
Constant Field Values

CONFIG_KEY_LOCK_READ_TIMEOUT

public static final String CONFIG_KEY_LOCK_READ_TIMEOUT
See Also:
Constant Field Values

CONFIG_KEY_COORDINATOR_FETCH_INFO_TIMEOUT

public static final String CONFIG_KEY_COORDINATOR_FETCH_INFO_TIMEOUT
See Also:
Constant Field Values

CONFIG_KEY_MAX_CONCURRENT_TRANSACTIONS_ON_MASTER

public static final String CONFIG_KEY_MAX_CONCURRENT_TRANSACTIONS_ON_MASTER
See Also:
Constant Field Values

CONFIG_DEFAULT_HA_CLUSTER_NAME

public static final String CONFIG_DEFAULT_HA_CLUSTER_NAME
See Also:
Constant Field Values

CONFIG_DEFAULT_PORT

public static final int CONFIG_DEFAULT_PORT
See Also:
Constant Field Values

CONFIG_DEFAULT_PULL_INTERVAL

public static final long CONFIG_DEFAULT_PULL_INTERVAL
See Also:
Constant Field Values
Constructor Detail

HaConfig

public HaConfig()
Method Detail

getConfigValue

public static String getConfigValue(Map<String,String> config,
                                    String... oneKeyOutOf)

getBranchedDataPolicyFromConfig

public static org.neo4j.kernel.HAGraphDb.BranchedDataPolicy getBranchedDataPolicyFromConfig(Map<String,String> config)

getSlaveUpdateModeFromConfig

public static HaConfig.SlaveUpdateMode getSlaveUpdateModeFromConfig(Map<String,String> config)

getClientReadTimeoutFromConfig

public static int getClientReadTimeoutFromConfig(Map<String,String> config)

getClientLockReadTimeoutFromConfig

public static int getClientLockReadTimeoutFromConfig(Map<String,String> config)

getMaxConcurrentChannelsPerSlaveFromConfig

public static int getMaxConcurrentChannelsPerSlaveFromConfig(Map<String,String> config)

getMaxConcurrentTransactionsOnMasterFromConfig

public static int getMaxConcurrentTransactionsOnMasterFromConfig(Map<String,String> config)

getClusterNameFromConfig

public static String getClusterNameFromConfig(Map<String,String> config)

getPullIntervalFromConfig

public static long getPullIntervalFromConfig(Map<String,String> config)

getHaServerFromConfig

public static String getHaServerFromConfig(Map<String,String> config)

getAllowInitFromConfig

public static boolean getAllowInitFromConfig(Map<?,?> config)

getCoordinatorsFromConfig

public static String getCoordinatorsFromConfig(Map<String,String> config)

getMachineIdFromConfig

public static int getMachineIdFromConfig(Map<String,String> config)

getBackupPortFromConfig

public static int getBackupPortFromConfig(Map<?,?> config)
Returns:
the port for the backup server if that is enabled, or 0 if disabled.

loadConfigurations

public static Map<String,String> loadConfigurations(String file)

Neo4j Enterprise

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.