org.neo4j.kernel
Class HighlyAvailableGraphDatabase
java.lang.Object
org.neo4j.kernel.AbstractGraphDatabase
org.neo4j.kernel.HighlyAvailableGraphDatabase
- All Implemented Interfaces:
- org.neo4j.graphdb.GraphDatabaseService, ResponseReceiver
public class HighlyAvailableGraphDatabase
- extends org.neo4j.kernel.AbstractGraphDatabase
- implements org.neo4j.graphdb.GraphDatabaseService, ResponseReceiver
| Methods inherited from class org.neo4j.kernel.AbstractGraphDatabase |
createStringLogger, getAllNodes, getManagementBean, getMessageLog, getRelationshipTypes, getSingleManagementBean, getStoreDir, isEphemeral, shutdown |
| Methods inherited from interface org.neo4j.graphdb.GraphDatabaseService |
getAllNodes, getRelationshipTypes, shutdown |
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
HighlyAvailableGraphDatabase
public HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config)
- Will instantiate its own ZooKeeper broker
HighlyAvailableGraphDatabase
public HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config,
BrokerFactory brokerFactory)
- Only for testing (and
org.neo4j.kernel.ha.BackupFromHaCluster)
loadConfigurations
public static Map<String,String> loadConfigurations(String file)
getBroker
public Broker getBroker()
pullUpdates
public void pullUpdates()
getConfig
public org.neo4j.kernel.Config getConfig()
- Specified by:
getConfig in class org.neo4j.kernel.AbstractGraphDatabase
getManagementBeans
public <T> Collection<T> getManagementBeans(Class<T> type)
- Specified by:
getManagementBeans in class org.neo4j.kernel.AbstractGraphDatabase
toString
public String toString()
- Overrides:
toString in class org.neo4j.kernel.AbstractGraphDatabase
reevaluateMyself
protected void reevaluateMyself(org.neo4j.kernel.impl.nioneo.store.StoreId storeId)
beginTx
public org.neo4j.graphdb.Transaction beginTx()
- Specified by:
beginTx in interface org.neo4j.graphdb.GraphDatabaseService
createNode
public org.neo4j.graphdb.Node createNode()
- Specified by:
createNode in interface org.neo4j.graphdb.GraphDatabaseService
getNodeById
public org.neo4j.graphdb.Node getNodeById(long id)
- Specified by:
getNodeById in interface org.neo4j.graphdb.GraphDatabaseService
getReferenceNode
public org.neo4j.graphdb.Node getReferenceNode()
- Specified by:
getReferenceNode in interface org.neo4j.graphdb.GraphDatabaseService
getRelationshipById
public org.neo4j.graphdb.Relationship getRelationshipById(long id)
- Specified by:
getRelationshipById in interface org.neo4j.graphdb.GraphDatabaseService
registerKernelEventHandler
public org.neo4j.graphdb.event.KernelEventHandler registerKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler handler)
- Specified by:
registerKernelEventHandler in interface org.neo4j.graphdb.GraphDatabaseService
registerTransactionEventHandler
public <T> org.neo4j.graphdb.event.TransactionEventHandler<T> registerTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> handler)
- Specified by:
registerTransactionEventHandler in interface org.neo4j.graphdb.GraphDatabaseService
internalShutdown
public void internalShutdown(boolean rotateLogs)
close
protected void close()
- Specified by:
close in class org.neo4j.kernel.AbstractGraphDatabase
unregisterKernelEventHandler
public org.neo4j.graphdb.event.KernelEventHandler unregisterKernelEventHandler(org.neo4j.graphdb.event.KernelEventHandler handler)
- Specified by:
unregisterKernelEventHandler in interface org.neo4j.graphdb.GraphDatabaseService
unregisterTransactionEventHandler
public <T> org.neo4j.graphdb.event.TransactionEventHandler<T> unregisterTransactionEventHandler(org.neo4j.graphdb.event.TransactionEventHandler<T> handler)
- Specified by:
unregisterTransactionEventHandler in interface org.neo4j.graphdb.GraphDatabaseService
getSlaveContext
public SlaveContext getSlaveContext(int eventIdentifier)
- Description copied from interface:
ResponseReceiver
- Returns a
SlaveContext instance that has eventIdentifier
as the event identifier.
- Specified by:
getSlaveContext in interface ResponseReceiver
- Parameters:
eventIdentifier - The event identifier of the returned slave context
- Returns:
- The slave context
receive
public <T> T receive(Response<T> response)
- Specified by:
receive in interface ResponseReceiver
newMaster
public void newMaster(Exception e)
- Specified by:
newMaster in interface ResponseReceiver
getMasterServerIfMaster
public MasterServer getMasterServerIfMaster()
isMaster
public boolean isMaster()
index
public org.neo4j.graphdb.index.IndexManager index()
- Specified by:
index in interface org.neo4j.graphdb.GraphDatabaseService
shutdownBroker
public void shutdownBroker()
getKernelData
public org.neo4j.kernel.KernelData getKernelData()
- Specified by:
getKernelData in class org.neo4j.kernel.AbstractGraphDatabase
Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.