use of org.neo4j.kernel.impl.logging.NullLogService in project neo4j by neo4j.
the class NeoStoreDataSourceRule method getDataSource.
public NeoStoreDataSource getDataSource(File storeDir, FileSystemAbstraction fs, PageCache pageCache, Map<String, String> additionalConfig, DatabaseHealth databaseHealth) {
CommunityIdTypeConfigurationProvider idTypeConfigurationProvider = new CommunityIdTypeConfigurationProvider();
DefaultIdGeneratorFactory idGeneratorFactory = new DefaultIdGeneratorFactory(fs);
NullLogService logService = NullLogService.getInstance();
return getDataSource(storeDir, fs, idGeneratorFactory, idTypeConfigurationProvider, pageCache, additionalConfig, databaseHealth, logService);
}
use of org.neo4j.kernel.impl.logging.NullLogService in project neo4j by neo4j.
the class StoreUpgraderTest method newUpgrader.
private StoreUpgrader newUpgrader(UpgradableDatabase upgradableDatabase, PageCache pageCache, Config config) throws IOException {
check = new StoreVersionCheck(pageCache);
SilentMigrationProgressMonitor progressMonitor = new SilentMigrationProgressMonitor();
NullLogService instance = NullLogService.getInstance();
StoreMigrator defaultMigrator = new StoreMigrator(fileSystem, pageCache, getTuningConfig(), instance, schemaIndexProvider);
SchemaIndexMigrator indexMigrator = new SchemaIndexMigrator(fileSystem, schemaIndexProvider, labelScanStoreProvider);
StoreUpgrader upgrader = new StoreUpgrader(upgradableDatabase, progressMonitor, config, fileSystem, pageCache, NullLogProvider.getInstance());
upgrader.addParticipant(indexMigrator);
upgrader.addParticipant(defaultMigrator);
return upgrader;
}
Aggregations