|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.AbstractGraphDatabase
org.neo4j.kernel.InternalAbstractGraphDatabase
public abstract class InternalAbstractGraphDatabase
Exposes the methods getManagementBeans(Class)() a.s.o.
| Nested Class Summary | |
|---|---|
static class |
InternalAbstractGraphDatabase.Configuration
|
protected class |
InternalAbstractGraphDatabase.DefaultKernelData
|
| Field Summary | |
|---|---|
protected org.neo4j.kernel.impl.core.Caches |
caches
|
protected Config |
config
|
protected DiagnosticsManager |
diagnosticsManager
|
protected KernelData |
extensions
|
protected org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction |
fileSystem
|
protected Guard |
guard
|
protected IdGeneratorFactory |
idGeneratorFactory
|
protected org.neo4j.kernel.IndexManagerImpl |
indexManager
|
protected Iterable<IndexProvider> |
indexProviders
|
protected org.neo4j.kernel.impl.index.IndexStore |
indexStore
|
protected KernelEventHandlers |
kernelEventHandlers
|
protected org.neo4j.kernel.impl.core.KernelPanicEventGenerator |
kernelPanicEventGenerator
|
protected org.neo4j.kernel.impl.core.LastCommittedTxIdSetter |
lastCommittedTxIdSetter
|
protected LifeSupport |
life
|
protected org.neo4j.kernel.impl.transaction.LockManager |
lockManager
|
protected org.neo4j.kernel.impl.core.LockReleaser |
lockReleaser
|
protected org.neo4j.kernel.impl.transaction.xaframework.LogBufferFactory |
logBufferFactory
|
protected Logging |
logging
|
protected org.neo4j.kernel.impl.cache.MeasureDoNothing |
monitorGc
|
protected org.neo4j.kernel.impl.util.StringLogger |
msgLog
|
protected org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource |
neoDataSource
|
protected org.neo4j.kernel.NodeAutoIndexerImpl |
nodeAutoIndexer
|
protected org.neo4j.kernel.impl.core.NodeManager |
nodeManager
|
protected Map<String,String> |
params
|
protected org.neo4j.kernel.impl.persistence.PersistenceManager |
persistenceManager
|
protected org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource |
persistenceSource
|
protected org.neo4j.kernel.impl.core.PropertyIndexManager |
propertyIndexManager
|
protected org.neo4j.kernel.impl.transaction.RagManager |
ragManager
|
protected org.neo4j.kernel.impl.transaction.xaframework.RecoveryVerifier |
recoveryVerifier
|
protected org.neo4j.kernel.impl.core.RelationshipTypeCreator |
relationshipTypeCreator
|
protected org.neo4j.kernel.impl.core.RelationshipTypeHolder |
relationshipTypeHolder
|
protected org.neo4j.kernel.RelationshipAutoIndexerImpl |
relAutoIndexer
|
protected String |
storeDir
|
protected org.neo4j.kernel.impl.nioneo.store.StoreFactory |
storeFactory
|
protected org.neo4j.kernel.impl.nioneo.store.StoreId |
storeId
|
protected org.neo4j.kernel.impl.core.TxEventSyncHookFactory |
syncHook
|
protected TransactionEventHandlers |
transactionEventHandlers
|
protected org.neo4j.kernel.impl.transaction.TxHook |
txHook
|
protected org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator |
txIdGenerator
|
protected org.neo4j.kernel.impl.transaction.AbstractTransactionManager |
txManager
|
protected org.neo4j.kernel.impl.transaction.XaDataSourceManager |
xaDataSourceManager
|
protected org.neo4j.kernel.impl.transaction.xaframework.XaFactory |
xaFactory
|
| Constructor Summary | |
|---|---|
protected |
InternalAbstractGraphDatabase(String storeDir,
Map<String,String> params,
Iterable<IndexProvider> indexProviders,
Iterable<KernelExtension> kernelExtensions,
Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders)
|
| Method Summary | ||
|---|---|---|
Transaction |
beginTx()
Starts a new transaction and associates it with the current thread. |
|
protected org.neo4j.kernel.impl.core.Caches |
createCaches()
|
|
protected org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction |
createFileSystemAbstraction()
|
|
protected IdGeneratorFactory |
createIdGeneratorFactory()
|
|
protected KernelData |
createKernelData()
|
|
protected org.neo4j.kernel.impl.core.LastCommittedTxIdSetter |
createLastCommittedTxIdSetter()
|
|
protected org.neo4j.kernel.impl.transaction.LockManager |
createLockManager()
|
|
Node |
createNode()
Creates a new node. |
|
protected org.neo4j.kernel.impl.core.NodeProxy.NodeLookup |
createNodeLookup()
|
|
protected org.neo4j.kernel.impl.transaction.xaframework.RecoveryVerifier |
createRecoveryVerifier()
|
|
protected org.neo4j.kernel.impl.core.RelationshipProxy.RelationshipLookups |
createRelationshipLookups()
|
|
protected org.neo4j.kernel.impl.core.RelationshipTypeCreator |
createRelationshipTypeCreator()
|
|
protected org.neo4j.kernel.impl.nioneo.store.StoreFactory |
createStoreFactory()
|
|
protected Logging |
createStringLogger()
|
|
protected org.neo4j.kernel.impl.transaction.TxHook |
createTxHook()
|
|
protected org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator |
createTxIdGenerator()
|
|
boolean |
equals(Object o)
|
|
Iterable<Node> |
getAllNodes()
Returns all nodes in the graph. |
|
Config |
getConfig()
|
|
DiagnosticsManager |
getDiagnosticsManager()
|
|
Guard |
getGuard()
|
|
IdGeneratorFactory |
getIdGeneratorFactory()
|
|
KernelData |
getKernelData()
|
|
org.neo4j.kernel.impl.core.KernelPanicEventGenerator |
getKernelPanicGenerator()
|
|
org.neo4j.kernel.impl.transaction.LockManager |
getLockManager()
|
|
org.neo4j.kernel.impl.core.LockReleaser |
getLockReleaser()
|
|
|
getManagementBean(Class<T> type)
Get a single management bean. |
|
|
getManagementBeans(Class<T> beanClass)
|
|
org.neo4j.kernel.impl.util.StringLogger |
getMessageLog()
|
|
Node |
getNodeById(long id)
Looks up a node by id. |
|
org.neo4j.kernel.impl.core.NodeManager |
getNodeManager()
|
|
org.neo4j.kernel.impl.persistence.PersistenceSource |
getPersistenceSource()
|
|
Node |
getReferenceNode()
Returns the reference node, which is a "starting point" in the node space. |
|
Relationship |
getRelationshipById(long id)
Looks up a relationship by id. |
|
org.neo4j.kernel.impl.core.RelationshipTypeHolder |
getRelationshipTypeHolder()
|
|
Iterable<RelationshipType> |
getRelationshipTypes()
Returns all relationship types currently in the underlying store. |
|
|
getSingleManagementBean(Class<T> type)
|
|
String |
getStoreDir()
|
|
org.neo4j.kernel.impl.nioneo.store.StoreId |
getStoreId()
|
|
org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator |
getTxIdGenerator()
|
|
TransactionManager |
getTxManager()
|
|
org.neo4j.kernel.impl.transaction.XaDataSourceManager |
getXaDataSourceManager()
|
|
int |
hashCode()
|
|
IndexManager |
index()
Returns the IndexManager paired with this graph database service
and is the entry point for managing indexes coupled with this database. |
|
protected boolean |
isEphemeral()
|
|
KernelEventHandler |
registerKernelEventHandler(KernelEventHandler handler)
Registers handler as a handler for kernel events which
are generated from different places in the lifecycle of the kernel. |
|
|
registerTransactionEventHandler(TransactionEventHandler<T> handler)
Registers handler as a handler for transaction events which
are generated from different places in the lifecycle of each
transaction. |
|
protected void |
run()
|
|
void |
shutdown()
Shuts down Neo4j. |
|
String |
toString()
|
|
boolean |
transactionRunning()
|
|
TransactionBuilder |
tx()
|
|
KernelEventHandler |
unregisterKernelEventHandler(KernelEventHandler handler)
Unregisters handler from the list of kernel event handlers. |
|
|
unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
Unregisters handler from the list of transaction event handlers. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String storeDir
protected Map<String,String> params
protected org.neo4j.kernel.impl.nioneo.store.StoreId storeId
protected Logging logging
protected org.neo4j.kernel.impl.util.StringLogger msgLog
protected KernelEventHandlers kernelEventHandlers
protected TransactionEventHandlers transactionEventHandlers
protected org.neo4j.kernel.impl.core.RelationshipTypeHolder relationshipTypeHolder
protected org.neo4j.kernel.impl.core.NodeManager nodeManager
protected Iterable<IndexProvider> indexProviders
protected org.neo4j.kernel.IndexManagerImpl indexManager
protected Config config
protected org.neo4j.kernel.impl.core.KernelPanicEventGenerator kernelPanicEventGenerator
protected org.neo4j.kernel.impl.transaction.TxHook txHook
protected org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction fileSystem
protected org.neo4j.kernel.impl.transaction.XaDataSourceManager xaDataSourceManager
protected org.neo4j.kernel.impl.transaction.RagManager ragManager
protected org.neo4j.kernel.impl.transaction.LockManager lockManager
protected IdGeneratorFactory idGeneratorFactory
protected org.neo4j.kernel.impl.core.RelationshipTypeCreator relationshipTypeCreator
protected org.neo4j.kernel.impl.core.LastCommittedTxIdSetter lastCommittedTxIdSetter
protected org.neo4j.kernel.impl.nioneo.xa.NioNeoDbPersistenceSource persistenceSource
protected org.neo4j.kernel.impl.core.TxEventSyncHookFactory syncHook
protected org.neo4j.kernel.impl.persistence.PersistenceManager persistenceManager
protected org.neo4j.kernel.impl.core.PropertyIndexManager propertyIndexManager
protected org.neo4j.kernel.impl.core.LockReleaser lockReleaser
protected org.neo4j.kernel.impl.index.IndexStore indexStore
protected org.neo4j.kernel.impl.transaction.xaframework.LogBufferFactory logBufferFactory
protected org.neo4j.kernel.impl.transaction.AbstractTransactionManager txManager
protected org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator txIdGenerator
protected org.neo4j.kernel.impl.nioneo.store.StoreFactory storeFactory
protected org.neo4j.kernel.impl.transaction.xaframework.XaFactory xaFactory
protected DiagnosticsManager diagnosticsManager
protected org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource neoDataSource
protected org.neo4j.kernel.impl.transaction.xaframework.RecoveryVerifier recoveryVerifier
protected Guard guard
protected org.neo4j.kernel.impl.cache.MeasureDoNothing monitorGc
protected org.neo4j.kernel.NodeAutoIndexerImpl nodeAutoIndexer
protected org.neo4j.kernel.RelationshipAutoIndexerImpl relAutoIndexer
protected KernelData extensions
protected org.neo4j.kernel.impl.core.Caches caches
protected final LifeSupport life
| Constructor Detail |
|---|
protected InternalAbstractGraphDatabase(String storeDir,
Map<String,String> params,
Iterable<IndexProvider> indexProviders,
Iterable<KernelExtension> kernelExtensions,
Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders)
| Method Detail |
|---|
protected void run()
protected org.neo4j.kernel.impl.core.RelationshipTypeCreator createRelationshipTypeCreator()
public void shutdown()
GraphDatabaseService
shutdown in interface GraphDatabaseServiceprotected org.neo4j.kernel.impl.nioneo.store.StoreFactory createStoreFactory()
protected org.neo4j.kernel.impl.transaction.xaframework.RecoveryVerifier createRecoveryVerifier()
protected KernelData createKernelData()
protected org.neo4j.kernel.impl.core.LastCommittedTxIdSetter createLastCommittedTxIdSetter()
protected org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator createTxIdGenerator()
protected org.neo4j.kernel.impl.core.Caches createCaches()
protected org.neo4j.kernel.impl.core.RelationshipProxy.RelationshipLookups createRelationshipLookups()
protected org.neo4j.kernel.impl.core.NodeProxy.NodeLookup createNodeLookup()
protected org.neo4j.kernel.impl.transaction.TxHook createTxHook()
protected org.neo4j.kernel.impl.nioneo.store.FileSystemAbstraction createFileSystemAbstraction()
protected IdGeneratorFactory createIdGeneratorFactory()
protected org.neo4j.kernel.impl.transaction.LockManager createLockManager()
protected Logging createStringLogger()
public final String getStoreDir()
getStoreDir in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.nioneo.store.StoreId getStoreId()
getStoreId in interface GraphDatabaseAPIpublic Transaction beginTx()
GraphDatabaseService
beginTx in interface GraphDatabaseServicepublic boolean transactionRunning()
transactionRunning in class AbstractGraphDatabasepublic final <T> T getManagementBean(Class<T> type)
AbstractGraphDatabaseGraphDatabaseAPI.getSingleManagementBean(Class).
getManagementBean in class AbstractGraphDatabasepublic final <T> T getSingleManagementBean(Class<T> type)
getSingleManagementBean in interface GraphDatabaseAPIprotected boolean isEphemeral()
public String toString()
toString in class Objectpublic Iterable<Node> getAllNodes()
GraphDatabaseService
getAllNodes in interface GraphDatabaseServicepublic Iterable<RelationshipType> getRelationshipTypes()
GraphDatabaseServicenode.createRelationshipTo(...). Note that this method is guaranteed to
return all known relationship types, but it does not guarantee that it
won't return more than that (e.g. it can return "historic"
relationship types that no longer have any relationships in the node
space).
getRelationshipTypes in interface GraphDatabaseServicepublic KernelEventHandler registerKernelEventHandler(KernelEventHandler handler)
GraphDatabaseServicehandler as a handler for kernel events which
are generated from different places in the lifecycle of the kernel.
To guarantee proper behaviour the handler should be registered right
after the graph database has been started. If the specified handler
instance has already been registered this method will do nothing.
registerKernelEventHandler in interface GraphDatabaseServicehandler - the handler to receive events about different states
in the kernel lifecycle.
public <T> TransactionEventHandler<T> registerTransactionEventHandler(TransactionEventHandler<T> handler)
GraphDatabaseServicehandler as a handler for transaction events which
are generated from different places in the lifecycle of each
transaction. To guarantee that the handler gets all events properly
it shouldn't be registered when the application is running (i.e. in the
middle of one or more transactions). If the specified handler instance
has already been registered this method will do nothing.
registerTransactionEventHandler in interface GraphDatabaseServiceT - the type of state object used in the handler, see more
documentation about it at TransactionEventHandler.handler - the handler to receive events about different states
in transaction lifecycles.
public KernelEventHandler unregisterKernelEventHandler(KernelEventHandler handler)
GraphDatabaseServicehandler from the list of kernel event handlers.
If handler hasn't been registered with
GraphDatabaseService.registerKernelEventHandler(KernelEventHandler) prior to calling
this method an IllegalStateException will be thrown.
After a successful call to this method the handler will no
longer receive any kernel events.
unregisterKernelEventHandler in interface GraphDatabaseServicehandler - the handler to receive events about different states
in the kernel lifecycle.
public <T> TransactionEventHandler<T> unregisterTransactionEventHandler(TransactionEventHandler<T> handler)
GraphDatabaseServicehandler from the list of transaction event handlers.
If handler hasn't been registered with
GraphDatabaseService.registerTransactionEventHandler(TransactionEventHandler) prior
to calling this method an IllegalStateException will be thrown.
After a successful call to this method the handler will no
longer receive any transaction events.
unregisterTransactionEventHandler in interface GraphDatabaseServiceT - the type of state object used in the handler, see more
documentation about it at TransactionEventHandler.handler - the handler to receive events about different states
in transaction lifecycles.
public Node createNode()
GraphDatabaseService
createNode in interface GraphDatabaseServicepublic Node getNodeById(long id)
GraphDatabaseService
getNodeById in interface GraphDatabaseServiceid - the id of the node
id if foundpublic Relationship getRelationshipById(long id)
GraphDatabaseService
getRelationshipById in interface GraphDatabaseServiceid - the id of the relationship
id if foundpublic Node getReferenceNode()
GraphDatabaseService
getReferenceNode in interface GraphDatabaseServicepublic TransactionBuilder tx()
tx in interface GraphDatabaseAPIpublic Guard getGuard()
getGuard in interface GraphDatabaseAPIpublic <T> Collection<T> getManagementBeans(Class<T> beanClass)
getManagementBeans in interface GraphDatabaseAPIpublic KernelData getKernelData()
getKernelData in interface GraphDatabaseAPIpublic IndexManager index()
GraphDatabaseServiceIndexManager paired with this graph database service
and is the entry point for managing indexes coupled with this database.
index in interface GraphDatabaseServiceIndexManager for this database.public Config getConfig()
public org.neo4j.kernel.impl.core.NodeManager getNodeManager()
getNodeManager in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.core.LockReleaser getLockReleaser()
getLockReleaser in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.transaction.LockManager getLockManager()
getLockManager in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.transaction.XaDataSourceManager getXaDataSourceManager()
getXaDataSourceManager in interface GraphDatabaseAPIpublic TransactionManager getTxManager()
getTxManager in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.core.RelationshipTypeHolder getRelationshipTypeHolder()
getRelationshipTypeHolder in interface GraphDatabaseAPIpublic IdGeneratorFactory getIdGeneratorFactory()
getIdGeneratorFactory in interface GraphDatabaseAPIpublic DiagnosticsManager getDiagnosticsManager()
getDiagnosticsManager in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.persistence.PersistenceSource getPersistenceSource()
getPersistenceSource in interface GraphDatabaseAPIpublic final org.neo4j.kernel.impl.util.StringLogger getMessageLog()
getMessageLog in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.transaction.xaframework.TxIdGenerator getTxIdGenerator()
getTxIdGenerator in interface GraphDatabaseAPIpublic org.neo4j.kernel.impl.core.KernelPanicEventGenerator getKernelPanicGenerator()
getKernelPanicGenerator in interface GraphDatabaseAPIpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||