org.neo4j.kernel
Class HighlyAvailableGraphDatabase
java.lang.Object
org.neo4j.kernel.HighlyAvailableGraphDatabase
- All Implemented Interfaces:
- GraphDatabaseService, GraphDatabaseAPI
public class HighlyAvailableGraphDatabase
- extends Object
- implements GraphDatabaseService, 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 Logging logging
configuration
protected 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<IndexProvider> indexProviders,
Iterable<KernelExtension> kernelExtensions,
Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders)
- Create a new instance of HighlyAvailableGraphDatabase
createNode
public Node createNode()
- Specified by:
createNode in interface GraphDatabaseService
getNodeById
public Node getNodeById(long id)
- Specified by:
getNodeById in interface GraphDatabaseService
getReferenceNode
public Node getReferenceNode()
- Specified by:
getReferenceNode in interface GraphDatabaseService
getAllNodes
public Iterable<Node> getAllNodes()
- Specified by:
getAllNodes in interface GraphDatabaseService
getRelationshipTypes
public Iterable<RelationshipType> getRelationshipTypes()
- Specified by:
getRelationshipTypes in interface GraphDatabaseService
getRelationshipById
public Relationship getRelationshipById(long id)
- Specified by:
getRelationshipById in interface GraphDatabaseService
index
public IndexManager index()
- Specified by:
index in interface GraphDatabaseService
beginTx
public Transaction beginTx()
- Specified by:
beginTx in interface GraphDatabaseService
shutdown
public void shutdown()
- Specified by:
shutdown in interface GraphDatabaseService
getNodeManager
public org.neo4j.kernel.impl.core.NodeManager getNodeManager()
- Specified by:
getNodeManager in interface GraphDatabaseAPI
getLockReleaser
public org.neo4j.kernel.impl.core.LockReleaser getLockReleaser()
- Specified by:
getLockReleaser in interface GraphDatabaseAPI
getLockManager
public org.neo4j.kernel.impl.transaction.LockManager getLockManager()
- Specified by:
getLockManager in interface GraphDatabaseAPI
getXaDataSourceManager
public org.neo4j.kernel.impl.transaction.XaDataSourceManager getXaDataSourceManager()
- Specified by:
getXaDataSourceManager in interface GraphDatabaseAPI
getTxManager
public TransactionManager getTxManager()
- Specified by:
getTxManager in interface GraphDatabaseAPI
getDiagnosticsManager
public DiagnosticsManager getDiagnosticsManager()
- Specified by:
getDiagnosticsManager in interface GraphDatabaseAPI
getMessageLog
public org.neo4j.kernel.impl.util.StringLogger getMessageLog()
- Specified by:
getMessageLog in interface GraphDatabaseAPI
getRelationshipTypeHolder
public org.neo4j.kernel.impl.core.RelationshipTypeHolder getRelationshipTypeHolder()
- Specified by:
getRelationshipTypeHolder in interface GraphDatabaseAPI
getIdGeneratorFactory
public IdGeneratorFactory getIdGeneratorFactory()
- Specified by:
getIdGeneratorFactory in interface GraphDatabaseAPI
getStoreIdGetter
public org.neo4j.com.StoreIdGetter getStoreIdGetter()
getKernelData
public KernelData getKernelData()
- Specified by:
getKernelData in interface GraphDatabaseAPI
getSingleManagementBean
public <T> T getSingleManagementBean(Class<T> type)
- Specified by:
getSingleManagementBean in interface 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 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 TransactionBuilder tx()
- Specified by:
tx in interface GraphDatabaseAPI
internalShutdown
public void internalShutdown(boolean rotateLogs)
close
protected void close()
registerKernelEventHandler
public KernelEventHandler registerKernelEventHandler(KernelEventHandler handler)
- Specified by:
registerKernelEventHandler in interface GraphDatabaseService
registerTransactionEventHandler
public <T> TransactionEventHandler<T> registerTransactionEventHandler(TransactionEventHandler<T> handler)
- Specified by:
registerTransactionEventHandler in interface GraphDatabaseService
unregisterKernelEventHandler
public KernelEventHandler unregisterKernelEventHandler(KernelEventHandler handler)
- Specified by:
unregisterKernelEventHandler in interface GraphDatabaseService
unregisterTransactionEventHandler
public <T> TransactionEventHandler<T> unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
- Specified by:
unregisterTransactionEventHandler in interface 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 GraphDatabaseAPI
getKernelPanicGenerator
public org.neo4j.kernel.impl.core.KernelPanicEventGenerator getKernelPanicGenerator()
- Specified by:
getKernelPanicGenerator in interface GraphDatabaseAPI
getPersistenceSource
public org.neo4j.kernel.impl.persistence.PersistenceSource getPersistenceSource()
- Specified by:
getPersistenceSource in interface GraphDatabaseAPI
getGuard
public Guard getGuard()
- Specified by:
getGuard in interface GraphDatabaseAPI
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.