use of org.neo4j.kernel.impl.api.InternalTransactionCommitProcess in project neo4j by neo4j.
the class GraphStoreFixture method startDatabaseAndExtractComponents.
private void startDatabaseAndExtractComponents() {
managementService = new TestDatabaseManagementServiceBuilder(testDirectory.homePath()).setFileSystem(testDirectory.getFileSystem()).setConfig(GraphDatabaseSettings.record_format, formatName).setConfig(GraphDatabaseInternalSettings.label_block_size, 60).setConfig(GraphDatabaseInternalSettings.consistency_check_on_apply, false).setConfig(getConfig()).build();
database = (GraphDatabaseAPI) managementService.database(DEFAULT_DATABASE_NAME);
DependencyResolver dependencyResolver = database.getDependencyResolver();
commitProcess = new InternalTransactionCommitProcess(dependencyResolver.resolveDependency(TransactionAppender.class), dependencyResolver.resolveDependency(StorageEngine.class));
transactionIdStore = database.getDependencyResolver().resolveDependency(TransactionIdStore.class);
storageEngine = dependencyResolver.resolveDependency(RecordStorageEngine.class);
neoStores = storageEngine.testAccessNeoStores();
indexingService = dependencyResolver.resolveDependency(IndexingService.class);
directStoreAccess = new DirectStoreAccess(neoStores, dependencyResolver.resolveDependency(IndexProviderMap.class), dependencyResolver.resolveDependency(TokenHolders.class), dependencyResolver.resolveDependency(IndexStatisticsStore.class), dependencyResolver.resolveDependency(IdGeneratorFactory.class));
countsStore = storageEngine.countsAccessor();
groupDegreesStore = storageEngine.relationshipGroupDegreesStore();
pageCache = dependencyResolver.resolveDependency(PageCache.class);
}
Aggregations