org.neo4j.kernel
Class EmbeddedGraphDatabase

java.lang.Object
  extended by org.neo4j.kernel.AbstractGraphDatabase
      extended by org.neo4j.kernel.InternalAbstractGraphDatabase
          extended by org.neo4j.kernel.EmbeddedGraphDatabase
All Implemented Interfaces:
GraphDatabaseService, GraphDatabaseAPI

public class EmbeddedGraphDatabase
extends InternalAbstractGraphDatabase

An implementation of GraphDatabaseService that is used to embed Neo4j in an application. You typically instantiate it by using GraphDatabaseFactory like so:

 
 GraphDatabaseService graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "var/graphdb" );
 // ... use Neo4j
 graphDb.shutdown();
 
 

For more information, see GraphDatabaseService.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.neo4j.kernel.InternalAbstractGraphDatabase
InternalAbstractGraphDatabase.Configuration, InternalAbstractGraphDatabase.DefaultKernelData
 
Field Summary
 
Fields inherited from class org.neo4j.kernel.InternalAbstractGraphDatabase
caches, config, dependencyResolver, diagnosticsManager, extensions, fileSystem, guard, idGeneratorFactory, indexManager, indexStore, kernelEventHandlers, kernelPanicEventGenerator, life, lockManager, logBufferFactory, logging, msgLog, neoDataSource, nodeAutoIndexer, nodeManager, params, persistenceManager, persistenceSource, propertyIndexManager, recoveryVerifier, relationshipTypeCreator, relationshipTypeHolder, relAutoIndexer, stateFactory, storeDir, storeFactory, storeId, storeLocker, syncHook, transactionEventHandlers, txHook, txIdGenerator, txManager, xaDataSourceManager, xaFactory
 
Constructor Summary
EmbeddedGraphDatabase(String storeDir)
          Deprecated. 
EmbeddedGraphDatabase(String storeDir, Map<String,String> params)
          Deprecated. 
EmbeddedGraphDatabase(String storeDir, Map<String,String> params, Iterable<IndexProvider> indexProviders, Iterable<KernelExtensionFactory<?>> kernelExtensions, Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders, Iterable<org.neo4j.kernel.impl.transaction.xaframework.TransactionInterceptorProvider> txInterceptorProviders)
          Internal constructor used by GraphDatabaseFactory
 
Method Summary
 
Methods inherited from class org.neo4j.kernel.InternalAbstractGraphDatabase
beginTx, beginTx, create, createCaches, createFileSystemAbstraction, createIdGeneratorFactory, createKernelData, createLockManager, createLogging, createNeoDataSource, createNode, createNodeLookup, createRecoveryVerifier, createRelationshipLookups, createRelationshipTypeCreator, createStoreFactory, createTransactionStateFactory, createTxHook, createTxIdGenerator, createXaDataSourceManager, doAfterRecoveryAndStartup, equals, getAllNodes, getConfig, getDependencyResolver, getDiagnosticsManager, getGuard, getIdGeneratorFactory, getKernelData, getKernelPanicGenerator, getLockManager, getMessageLog, getNodeById, getNodeManager, getPersistenceSource, getReferenceNode, getRelationshipById, getRelationshipTypeHolder, getRelationshipTypes, getStoreDir, getStoreId, getTxIdGenerator, getTxManager, getXaDataSourceManager, hashCode, index, isEphemeral, registerKernelEventHandler, registerRecovery, registerTransactionEventHandler, run, shutdown, toString, transactionRunning, tx, unregisterKernelEventHandler, unregisterTransactionEventHandler
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmbeddedGraphDatabase

@Deprecated
public EmbeddedGraphDatabase(String storeDir)
Deprecated. 

Creates an embedded GraphDatabaseService with a store located in storeDir, which will be created if it doesn't already exist. This is deprecated. Use GraphDatabaseFactory instead.

Parameters:
storeDir - the store directory for the Neo4j store files

EmbeddedGraphDatabase

@Deprecated
public EmbeddedGraphDatabase(String storeDir,
                                        Map<String,String> params)
Deprecated. 

A non-standard way of creating an embedded GraphDatabaseService with a set of configuration parameters.

Creates an embedded GraphDatabaseService with a store located in storeDir, which will be created if it doesn't already exist. This is deprecated. Use GraphDatabaseFactory instead.

Parameters:
storeDir - the store directory for the db files
params - configuration parameters

EmbeddedGraphDatabase

public EmbeddedGraphDatabase(String storeDir,
                             Map<String,String> params,
                             Iterable<IndexProvider> indexProviders,
                             Iterable<KernelExtensionFactory<?>> kernelExtensions,
                             Iterable<org.neo4j.kernel.impl.cache.CacheProvider> cacheProviders,
                             Iterable<org.neo4j.kernel.impl.transaction.xaframework.TransactionInterceptorProvider> txInterceptorProviders)
Internal constructor used by GraphDatabaseFactory

Parameters:
storeDir -
params -
indexProviders -
kernelExtensions -
cacheProviders -
txInterceptorProviders -


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