org.neo4j.kernel
Class HighlyAvailableGraphDatabase
java.lang.Object
org.neo4j.kernel.HighlyAvailableGraphDatabase
- All Implemented Interfaces:
- org.neo4j.graphdb.GraphDatabaseService, org.neo4j.kernel.GraphDatabaseAPI
public class HighlyAvailableGraphDatabase
- extends Object
- implements org.neo4j.graphdb.GraphDatabaseService, org.neo4j.kernel.GraphDatabaseAPI
COPY_FROM_MASTER_TEMP
public static final String COPY_FROM_MASTER_TEMP
- See Also:
- Constant Field Values
storeId
protected volatile org.neo4j.kernel.impl.nioneo.store.StoreId storeId
storeIdGetter
protected final org.neo4j.com.StoreIdGetter storeIdGetter
logging
protected org.neo4j.kernel.logging.Logging logging
configuration
protected org.neo4j.kernel.configuration.Config configuration
fileSystemAbstraction
protected final org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystemAbstraction
HighlyAvailableGraphDatabase
public HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config)
- Default IndexProviders and KernelExtensions by calling Service.load
- Parameters:
storeDir - config -
HighlyAvailableGraphDatabase
public HighlyAvailableGraphDatabase(String storeDir,
Map<String,String> config,
Iterable<org.neo4j.graphdb.index.IndexProvider> indexProviders,
Iterable<org.neo4j.kernel.KernelExtension> kernelExtensions,
Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders)
- Create a new instance of HighlyAvailableGraphDatabase
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
getAllNodes
public Iterable<org.neo4j.graphdb.Node> getAllNodes()
- Specified by:
getAllNodes in interface org.neo4j.graphdb.GraphDatabaseService
getRelationshipTypes
public Iterable<org.neo4j.graphdb.RelationshipType> getRelationshipTypes()
- Specified by:
getRelationshipTypes in interface org.neo4j.graphdb.GraphDatabaseService
getRelationshipById
public org.neo4j.graphdb.Relationship getRelationshipById(long id)
- Specified by:
getRelationshipById in interface org.neo4j.graphdb.GraphDatabaseService
index
public org.neo4j.graphdb.index.IndexManager index()
- Specified by:
index in interface org.neo4j.graphdb.GraphDatabaseService
beginTx
public org.neo4j.graphdb.Transaction beginTx()
- Specified by:
beginTx in interface org.neo4j.graphdb.GraphDatabaseService
shutdown
public void shutdown()
- Specified by:
shutdown in interface org.neo4j.graphdb.GraphDatabaseService
getNodeManager
public org.neo4j.kernel.impl.core.NodeManager getNodeManager()
- Specified by:
getNodeManager in interface org.neo4j.kernel.GraphDatabaseAPI
getLockReleaser
public org.neo4j.kernel.impl.core.LockReleaser getLockReleaser()
- Specified by:
getLockReleaser in interface org.neo4j.kernel.GraphDatabaseAPI
getLockManager
public org.neo4j.kernel.impl.transaction.LockManager getLockManager()
- Specified by:
getLockManager in interface org.neo4j.kernel.GraphDatabaseAPI
getXaDataSourceManager
public org.neo4j.kernel.impl.transaction.XaDataSourceManager getXaDataSourceManager()
- Specified by:
getXaDataSourceManager in interface org.neo4j.kernel.GraphDatabaseAPI
getTxManager
public TransactionManager getTxManager()
- Specified by:
getTxManager in interface org.neo4j.kernel.GraphDatabaseAPI
getDiagnosticsManager
public org.neo4j.kernel.info.DiagnosticsManager getDiagnosticsManager()
- Specified by:
getDiagnosticsManager in interface org.neo4j.kernel.GraphDatabaseAPI
getMessageLog
public org.neo4j.kernel.impl.util.StringLogger getMessageLog()
- Specified by:
getMessageLog in interface org.neo4j.kernel.GraphDatabaseAPI
getRelationshipTypeHolder
public org.neo4j.kernel.impl.core.RelationshipTypeHolder getRelationshipTypeHolder()
- Specified by:
getRelationshipTypeHolder in interface org.neo4j.kernel.GraphDatabaseAPI
getIdGeneratorFactory
public org.neo4j.kernel.IdGeneratorFactory getIdGeneratorFactory()
- Specified by:
getIdGeneratorFactory in interface org.neo4j.kernel.GraphDatabaseAPI
getStoreIdGetter
public org.neo4j.com.StoreIdGetter getStoreIdGetter()
getKernelData
public org.neo4j.kernel.KernelData getKernelData()
- Specified by:
getKernelData in interface org.neo4j.kernel.GraphDatabaseAPI
getSingleManagementBean
public <T> T getSingleManagementBean(Class<T> type)
- Specified by:
getSingleManagementBean in interface org.neo4j.kernel.GraphDatabaseAPI
start
protected void start()
getBroker
public Broker getBroker()
pullUpdates
public void pullUpdates()
getManagementBeans
public <T> Collection<T> getManagementBeans(Class<T> type)
- Specified by:
getManagementBeans in interface org.neo4j.kernel.GraphDatabaseAPI
getManagementBean
public final <T> T getManagementBean(Class<T> type)
toString
public String toString()
- Overrides:
toString in class Object
reevaluateMyself
protected void reevaluateMyself(org.neo4j.kernel.impl.nioneo.store.StoreId storeId)
tx
public org.neo4j.kernel.TransactionBuilder tx()
- Specified by:
tx in interface org.neo4j.kernel.GraphDatabaseAPI
internalShutdown
public void internalShutdown(boolean rotateLogs)
close
protected void close()
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
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
getMasterServerIfMaster
public MasterServer getMasterServerIfMaster()
getMachineId
protected int getMachineId()
isMaster
public boolean isMaster()
createBroker
protected Broker createBroker()
createClusterClient
protected ClusterClient createClusterClient()
getStoreDir
public String getStoreDir()
- Specified by:
getStoreDir in interface org.neo4j.kernel.GraphDatabaseAPI
getKernelPanicGenerator
public org.neo4j.kernel.impl.core.KernelPanicEventGenerator getKernelPanicGenerator()
- Specified by:
getKernelPanicGenerator in interface org.neo4j.kernel.GraphDatabaseAPI
getPersistenceSource
public org.neo4j.kernel.impl.persistence.PersistenceSource getPersistenceSource()
- Specified by:
getPersistenceSource in interface org.neo4j.kernel.GraphDatabaseAPI
getGuard
public org.neo4j.kernel.guard.Guard getGuard()
- Specified by:
getGuard in interface org.neo4j.kernel.GraphDatabaseAPI
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.