org.neo4j.kernel.impl.transaction
Class TxModule
java.lang.Object
org.neo4j.kernel.impl.transaction.TxModule
public class TxModule
- extends Object
Can reads a XA data source configuration file and registers all the data
sources defined there or be used to manually add XA data sources.
This module will create a instance of each XaDataSource
once started
and will close them once stopped.
- See Also:
XaDataSourceManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TxModule
public TxModule(String txLogDir,
KernelPanicEventGenerator kpe,
TxHook txHook,
String serviceName)
TxModule
public TxModule(boolean readOnly,
KernelPanicEventGenerator kpe)
init
public void init()
start
public void start()
reload
public void reload()
stop
public void stop()
destroy
public void destroy()
getModuleName
public String getModuleName()
registerDataSource
public XaDataSource registerDataSource(String dsName,
String className,
byte[] resourceId,
Map<?,?> params)
- Use this method to add data source that can participate in transactions
if you don't want a data source configuration file.
- Parameters:
name
- The data source nameclassName
- The (full) class name of classresourceId
- The resource id identifying datasourceparams
- The configuration map for the datasource
- Throws:
LifecycleException
registerDataSource
public XaDataSource registerDataSource(String dsName,
String className,
byte[] resourceId,
Map<?,?> params,
boolean useExisting)
getTxLogDirectory
public String getTxLogDirectory()
getTxManager
public TransactionManager getTxManager()
getXaDataSourceManager
public XaDataSourceManager getXaDataSourceManager()
getTxHook
public TxHook getTxHook()
getStartedTxCount
public int getStartedTxCount()
getCommittedTxCount
public int getCommittedTxCount()
getRolledbackTxCount
public int getRolledbackTxCount()
getActiveTxCount
public int getActiveTxCount()
getPeakConcurrentTxCount
public int getPeakConcurrentTxCount()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.