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 int CONFIG_DEFAULT_COORDINATOR_FETCH_INFO_TIMEOUT
           
static String CONFIG_DEFAULT_HA_CLUSTER_NAME
           
static int CONFIG_DEFAULT_PORT
           
static long CONFIG_DEFAULT_PULL_INTERVAL
           
static long CONFIG_DEFAULT_ZK_SESSION_TIMEOUT
           
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
           
static String CONFIG_KEY_ZK_SESSION_TIMEOUT
           
static String GCR_CACHE_MIN_LOG_INTERVAL
          The minimal time that must pass in between logging statistics from the cache (when using the 'gcr' cache).
static String NODE_CACHE_ARRAY_FRACTION
          The fraction of the heap (1%-10%) to use for the base array in the node cache (when using the 'gcr' cache).
static String NODE_CACHE_SIZE
          The amount of memory to use for the node cache (when using the 'gcr' cache).
static String RELATIONSHIP_CACHE_ARRAY_FRACTION
          The fraction of the heap (1%-10%) to use for the base array in the relationship cache (when using the 'gcr' cache).
static String RELATIONSHIP_CACHE_SIZE
          The amount of memory to use for the relationship cache (when using the 'gcr' cache).
 
Constructor Summary
HaConfig()
           
 
Method Summary
static boolean getAllowInitFromConfig(Map<?,?> config)
           
static int getBackupPortFromConfig(Map<?,?> config)
           
static 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 int getFetchInfoTimeoutFromConfig(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 long getZKSessionTimeoutFromConfig(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_KEY_ZK_SESSION_TIMEOUT

public static final String CONFIG_KEY_ZK_SESSION_TIMEOUT
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

CONFIG_DEFAULT_COORDINATOR_FETCH_INFO_TIMEOUT

public static final int CONFIG_DEFAULT_COORDINATOR_FETCH_INFO_TIMEOUT
See Also:
Constant Field Values

CONFIG_DEFAULT_ZK_SESSION_TIMEOUT

public static final long CONFIG_DEFAULT_ZK_SESSION_TIMEOUT
See Also:
Constant Field Values

NODE_CACHE_SIZE

public static final String NODE_CACHE_SIZE
The amount of memory to use for the node cache (when using the 'gcr' cache).

See Also:
Constant Field Values

RELATIONSHIP_CACHE_SIZE

public static final String RELATIONSHIP_CACHE_SIZE
The amount of memory to use for the relationship cache (when using the 'gcr' cache).

See Also:
Constant Field Values

NODE_CACHE_ARRAY_FRACTION

public static final String NODE_CACHE_ARRAY_FRACTION
The fraction of the heap (1%-10%) to use for the base array in the node cache (when using the 'gcr' cache).

See Also:
Constant Field Values

RELATIONSHIP_CACHE_ARRAY_FRACTION

public static final String RELATIONSHIP_CACHE_ARRAY_FRACTION
The fraction of the heap (1%-10%) to use for the base array in the relationship cache (when using the 'gcr' cache).

See Also:
Constant Field Values

GCR_CACHE_MIN_LOG_INTERVAL

public static final String GCR_CACHE_MIN_LOG_INTERVAL
The minimal time that must pass in between logging statistics from the cache (when using the 'gcr' cache). Default unit is seconds, suffix with 's', 'm', or 'ms' to have the unit be seconds, minutes or milliseconds respectively.

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 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)

getZKSessionTimeoutFromConfig

public static long getZKSessionTimeoutFromConfig(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.

getFetchInfoTimeoutFromConfig

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

loadConfigurations

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

Neo4j Enterprise

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