|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.kernel.impl.transaction.XaDataSourceManager
public class XaDataSourceManager
All datasources that have been defined in the XA data source configuration file or manually added will be created and registered here. A mapping between "name", "data source" and "branch id" is kept by this manager.
Use the getXaDataSource(java.lang.String) to obtain the instance of a datasource that
has been defined in the XA data source configuration.
XaDataSource| Method Summary | |
|---|---|
Collection<XaDataSource> |
getAllRegisteredDataSources()
|
Collection<XAResource> |
getAllRegisteredXAResources()
|
XaDataSource |
getXaDataSource(String name)
Returns the XaDataSource
registered as name. |
boolean |
hasDataSource(String name)
Convenience method since getXaDataSource(java.lang.String) returns null if name
doesn't exist. |
void |
registerDataSource(String name,
XaDataSource dataSource,
byte[] branchId)
Public for testing purpose. |
void |
unregisterDataSource(String name)
Public for testing purpose. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean hasDataSource(String name)
getXaDataSource(java.lang.String) returns null if name
doesn't exist.
public XaDataSource getXaDataSource(String name)
XaDataSource
registered as name. If no data source is registered with
that name null is returned.
name - the name of the data source
public void registerDataSource(String name,
XaDataSource dataSource,
byte[] branchId)
public void unregisterDataSource(String name)
public Collection<XAResource> getAllRegisteredXAResources()
public Collection<XaDataSource> getAllRegisteredDataSources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||