public class EmbeddedGraphDatabase extends InternalAbstractGraphDatabase
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
.InternalAbstractGraphDatabase.Configuration, InternalAbstractGraphDatabase.DefaultKernelData
cacheBridge, caches, cleanupService, config, dependencyResolver, diagnosticsManager, extensions, fileSystem, guard, idGeneratorFactory, indexManager, indexStore, jobScheduler, kernelAPI, kernelEventHandlers, kernelPanicEventGenerator, labelTokenHolder, life, lockManager, logBufferFactory, logging, msgLog, neoDataSource, nodeAutoIndexer, nodeManager, params, persistenceManager, persistenceSource, propertyKeyTokenHolder, recoveryVerifier, relationshipTypeCreator, relationshipTypeTokenHolder, relAutoIndexer, schema, stateFactory, statementContextProvider, storeDir, storeFactory, storeId, storeLocker, syncHook, transactionEventHandlers, txHook, txIdGenerator, txManager, updateableSchemaState, xaDataSourceManager, xaFactory
Constructor and Description |
---|
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 |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isHighlyAvailable() |
beginTx, beginTx, create, createCaches, createCleanupService, createFileSystemAbstraction, createIdGeneratorFactory, createKernelData, createLabelIdCreator, createLockManager, createLogging, createNeoDataSource, createNode, createNode, createNodeLookup, createPropertyKeyCreator, createRecoveryVerifier, createRelationshipLookups, createRelationshipTypeCreator, createStoreFactory, createTransactionStateFactory, createTxHook, createTxIdGenerator, createXaDataSourceManager, doAfterRecoveryAndStartup, equals, findNodesByLabelAndProperty, getAllNodes, getConfig, getDependencyResolver, getDiagnosticsManager, getGuard, getIdGeneratorFactory, getKernelData, getKernelPanicGenerator, getLockManager, getMessageLog, getNodeById, getNodeManager, getPersistenceSource, getReferenceNode, getRelationshipById, getRelationshipTypes, getRelationshipTypeTokenHolder, getStoreDir, getStoreId, getTxIdGenerator, getTxManager, getXaDataSourceManager, hashCode, index, isEphemeral, registerKernelEventHandler, registerRecovery, registerTransactionEventHandler, run, schema, shutdown, toString, transactionRunning, tx, unregisterKernelEventHandler, unregisterTransactionEventHandler
@Deprecated public EmbeddedGraphDatabase(String storeDir)
GraphDatabaseService
with a store located in
storeDir
, which will be created if it doesn't already exist.
This is deprecated. Use GraphDatabaseFactory
instead.storeDir
- the store directory for the Neo4j store files@Deprecated public EmbeddedGraphDatabase(String storeDir, Map<String,String> params)
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.storeDir
- the store directory for the db filesparams
- configuration parameterspublic 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)
GraphDatabaseFactory
protected boolean isHighlyAvailable()
isHighlyAvailable
in class InternalAbstractGraphDatabase
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.