public class DatabaseRuntime extends TxDrivenRuntime<TxDrivenModule>
TxDrivenRuntime backed by a GraphDatabaseService.
Supports only TxDrivenModule RuntimeModules.
To use this GraphAwareRuntime, please construct it using GraphAwareRuntimeFactory.| Modifier | Constructor and Description |
|---|---|
protected |
DatabaseRuntime(RuntimeConfiguration configuration,
org.neo4j.graphdb.GraphDatabaseService database,
TxDrivenModuleManager<TxDrivenModule> txDrivenModuleManager,
Neo4jWriter writer)
Construct a new runtime.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterShutdown()
React to shutdown.
|
protected void |
afterShutdown(org.neo4j.graphdb.GraphDatabaseService database)
React to shutdown.
|
protected void |
doRegisterModule(RuntimeModule module)
Perform the actual module registration after sanity checks have passed.
|
Neo4jWriter |
getDatabaseWriter() |
protected TxDrivenModuleManager<TxDrivenModule> |
getTxDrivenModuleManager()
Get the manager for
TxDrivenModules. |
afterCommit, afterRollback, beforeCommit, checkNotAlreadyRegistered, cleanupMetadata, getModule, getModule, loadMetadata, shutdownModules, startModulesbeforeShutdown, getConfiguration, getResource, isStarted, kernelPanic, orderComparedTo, registerModule, start, waitUntilStartedprotected DatabaseRuntime(RuntimeConfiguration configuration, org.neo4j.graphdb.GraphDatabaseService database, TxDrivenModuleManager<TxDrivenModule> txDrivenModuleManager, Neo4jWriter writer)
GraphAwareRuntimeFactory.configuration - config.database - on which the runtime operates.txDrivenModuleManager - manager for transaction-driven modules.writer - to use when writing to the database.protected TxDrivenModuleManager<TxDrivenModule> getTxDrivenModuleManager()
TxDrivenModules.getTxDrivenModuleManager in class TxDrivenRuntime<TxDrivenModule>protected void doRegisterModule(RuntimeModule module)
doRegisterModule in class BaseGraphAwareRuntimemodule - to register.protected final void afterShutdown()
afterShutdown in class BaseGraphAwareRuntimeprotected void afterShutdown(org.neo4j.graphdb.GraphDatabaseService database)
database - which has been shut down.public Neo4jWriter getDatabaseWriter()
Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.