public class ProductionTxDrivenModuleManager extends BaseTxDrivenModuleManager<TxDrivenModule>
BaseTxDrivenModuleManager backed by a GraphDatabaseService.metadataRepository, modules| Constructor and Description |
|---|
ProductionTxDrivenModuleManager(org.neo4j.graphdb.GraphDatabaseService database,
ModuleMetadataRepository metadataRepository,
StatsCollector statsCollector)
Construct a new manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(TxDrivenModule module)
Initialize module.
|
protected void |
reinitialize(TxDrivenModule module,
TxDrivenModuleMetadata oldMetadata)
Re-initialize module.
|
protected void |
start(TxDrivenModule module)
Start module.
|
acknowledgeMetadata, afterCommit, afterRollback, beforeCommit, createFreshMetadata, handleCorruptMetadata, handleNoMetadata, startModulescheckNotAlreadyRegistered, cleanupMetadata, getModule, getModule, loadMetadata, registerModule, shutdownModulesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckNotAlreadyRegistered, cleanupMetadata, getModule, getModule, loadMetadata, registerModule, shutdownModulespublic ProductionTxDrivenModuleManager(org.neo4j.graphdb.GraphDatabaseService database,
ModuleMetadataRepository metadataRepository,
StatsCollector statsCollector)
database - storing graph data.metadataRepository - for storing module metadata.protected void start(TxDrivenModule module)
start in class BaseTxDrivenModuleManager<TxDrivenModule>module - to be started.protected void initialize(TxDrivenModule module)
For example, a module that performs some in-graph caching needs to write information into the graph so that when the method returns, the graph is in the same state as it would be if the module has been running all the time since the graph was empty.
Note that for many modules, it might not be necessary to do anything.
initialize in class BaseTxDrivenModuleManager<TxDrivenModule>module - to initialize.protected void reinitialize(TxDrivenModule module, TxDrivenModuleMetadata oldMetadata)
For example, a module that performs some in-graph caching needs to write information into the graph so that when the method returns, the graph is in the same state as it would be if the module has been running all the time since the graph was empty.
Note that for many modules, it might not be necessary to do anything.
reinitialize in class BaseTxDrivenModuleManager<TxDrivenModule>module - to initialize.oldMetadata - metadata stored for this module from its previous run. Can be null in case metadata
was corrupt or there was no metadata.Copyright © 2013-2016–2018 Graph Aware Limited. All rights reserved.