org.neo4j.kernel
Class HighlyAvailableGraphDatabase

java.lang.Object
  extended by org.neo4j.kernel.AbstractGraphDatabase
      extended by org.neo4j.tooling.wrap.WrappedGraphDatabase
          extended by org.neo4j.kernel.HighlyAvailableGraphDatabase
All Implemented Interfaces:
GraphDatabaseService

public class HighlyAvailableGraphDatabase
extends WrappedGraphDatabase


Field Summary
static String CONFIG_KEY_ALLOW_INIT_CLUSTER
           
static String CONFIG_KEY_BRANCHED_DATA_POLICY
           
static String CONFIG_KEY_CLUSTER_NAME
           
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_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
           
 
Fields inherited from class org.neo4j.tooling.wrap.WrappedGraphDatabase
graphdb
 
Constructor Summary
HighlyAvailableGraphDatabase(HAGraphDb graphdb)
           
HighlyAvailableGraphDatabase(String storeDir, Map<String,String> config)
           
 
Method Summary
protected  WrappedIndex.WrappedNodeIndex automaticNodeIndex(ReadableIndex<Node> index)
           
protected  WrappedIndex.WrappedRelationshipIndex automaticRelationshipIndex(ReadableRelationshipIndex index)
           
 HAGraphDb getRawHaDb()
           
 boolean isMaster()
           
static Map<String,String> loadConfigurations(String file)
           
protected  WrappedNode<? extends WrappedGraphDatabase> node(Node node, boolean created)
           
protected  WrappedIndex.WrappedNodeIndex nodeIndex(Index<Node> index, String indexName)
           
 void pullUpdates()
           
protected  WrappedRelationship<? extends WrappedGraphDatabase> relationship(Relationship relationship, boolean created)
           
protected  WrappedIndex.WrappedRelationshipIndex relationshipIndex(RelationshipIndex index, String indexName)
           
 
Methods inherited from class org.neo4j.tooling.wrap.WrappedGraphDatabase
beginTx, createNode, equals, getAllNodes, getConfig, getManagementBeans, getNodeById, getReferenceNode, getRelationshipById, getRelationshipTypes, getStoreDir, hashCode, index, isReadOnly, onBeginTransaction, onFailureTransaction, onFinishTransaction, onNodeCreate, onShutdown, onSuccessTransaction, registerKernelEventHandler, registerTransactionEventHandler, shutdown, toString, unregisterKernelEventHandler, unregisterTransactionEventHandler
 
Methods inherited from class org.neo4j.kernel.AbstractGraphDatabase
getManagementBean, getSingleManagementBean
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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_LOCK_READ_TIMEOUT

public static final String CONFIG_KEY_LOCK_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
Constructor Detail

HighlyAvailableGraphDatabase

public HighlyAvailableGraphDatabase(String storeDir,
                                    Map<String,String> config)

HighlyAvailableGraphDatabase

public HighlyAvailableGraphDatabase(HAGraphDb graphdb)
Method Detail

loadConfigurations

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

pullUpdates

public void pullUpdates()

isMaster

public boolean isMaster()

getRawHaDb

public HAGraphDb getRawHaDb()

node

protected WrappedNode<? extends WrappedGraphDatabase> node(Node node,
                                                           boolean created)
Specified by:
node in class WrappedGraphDatabase

relationship

protected WrappedRelationship<? extends WrappedGraphDatabase> relationship(Relationship relationship,
                                                                           boolean created)
Specified by:
relationship in class WrappedGraphDatabase

nodeIndex

protected WrappedIndex.WrappedNodeIndex nodeIndex(Index<Node> index,
                                                  String indexName)
Overrides:
nodeIndex in class WrappedGraphDatabase

relationshipIndex

protected WrappedIndex.WrappedRelationshipIndex relationshipIndex(RelationshipIndex index,
                                                                  String indexName)
Overrides:
relationshipIndex in class WrappedGraphDatabase

automaticNodeIndex

protected WrappedIndex.WrappedNodeIndex automaticNodeIndex(ReadableIndex<Node> index)
Overrides:
automaticNodeIndex in class WrappedGraphDatabase

automaticRelationshipIndex

protected WrappedIndex.WrappedRelationshipIndex automaticRelationshipIndex(ReadableRelationshipIndex index)
Overrides:
automaticRelationshipIndex in class WrappedGraphDatabase


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