|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neo4j.kernel.impl.transaction.xaframework.XaContainer
public class XaContainer
This is a wrapper class containing the logical log, command factory,
transaction factory and resource manager. Using the static create
method, a XaResourceManager
will be created and the
XaLogicalLog
will be instantiated (not opened).
The purpose of this class is to make it easier to setup all that is needed
when using the xaframework
. Classes needs to be instantiated
in a certain order and references passed between the. XaContainer
will do that work so you only have to supply the logical log file
,
your XaCommandFactory
and XaTransactionFactory
implementations.
Method Summary | |
---|---|
void |
close()
Closes the logical log and nulls out all instances. |
static XaContainer |
create(XaDataSource dataSource,
String logicalLog,
XaCommandFactory cf,
XaTransactionFactory tf,
List<Pair<TransactionInterceptorProvider,Object>> providers,
Map<Object,Object> config)
Creates a XaContainer. |
XaCommandFactory |
getCommandFactory()
|
XaLogicalLog |
getLogicalLog()
|
XaResourceManager |
getResourceManager()
|
XaTransactionFactory |
getTransactionFactory()
|
void |
openLogicalLog()
Opens the logical log. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static XaContainer create(XaDataSource dataSource, String logicalLog, XaCommandFactory cf, XaTransactionFactory tf, List<Pair<TransactionInterceptorProvider,Object>> providers, Map<Object,Object> config)
logicalLog
- The logical log file namecf
- The command factory implementationtf
- The transaction factory implementationconfig
- Configuration map or null if no config neededpublic void openLogicalLog() throws IOException
This method is only valid to invoke once after the container has been created. Invoking this method again could cause the logical log to be corrupted.
IOException
public void close()
public XaCommandFactory getCommandFactory()
public XaLogicalLog getLogicalLog()
public XaResourceManager getResourceManager()
public XaTransactionFactory getTransactionFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |