use of org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource in project graphdb by neo4j-attic.
the class TestNeoStore method initializeStores.
private void initializeStores() throws IOException {
try {
LockManager lockManager = getEmbeddedGraphDb().getConfig().getLockManager();
LockReleaser lockReleaser = getEmbeddedGraphDb().getConfig().getLockReleaser();
ds = new NeoStoreXaDataSource(MapUtil.genericMap(LockManager.class, lockManager, LockReleaser.class, lockReleaser, IdGeneratorFactory.class, ID_GENERATOR_FACTORY, FileSystemAbstraction.class, CommonFactories.defaultFileSystemAbstraction(), LogBufferFactory.class, CommonFactories.defaultLogBufferFactory(MapUtil.stringMap()), TxIdGenerator.class, TxIdGenerator.DEFAULT, "store_dir", path(), "neo_store", file("neo"), "logical_log", file("nioneo_logical.log")));
// ds = new NeoStoreXaDataSource( file( "neo" ), file( "nioneo_logical.log" ),
// lockManager, lockReleaser );
} catch (InstantiationException e) {
throw new IOException("" + e);
}
xaCon = (NeoStoreXaConnection) ds.getXaConnection();
nStore = xaCon.getNodeConsumer();
pStore = xaCon.getPropertyStore();
relTypeStore = xaCon.getRelationshipTypeConsumer();
rStore = xaCon.getRelationshipConsumer();
}
Aggregations