//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void checkDbState(org.neo4j.io.layout.DatabaseLayout databaseLayout, org.neo4j.kernel.configuration.Config tuningConfiguration) throws ToolFailureException private void CheckDbState(DatabaseLayout databaseLayout, Config tuningConfiguration) { try { using (JobScheduler jobScheduler = createInitialisedScheduler(), PageCache pageCache = ConfigurableStandalonePageCacheFactory.createPageCache(_fs, tuningConfiguration, jobScheduler)) { assertRecoveryIsNotRequired(_fs, pageCache, tuningConfiguration, databaseLayout, new Monitors()); } } catch (RecoveryRequiredException rre) { throw new ToolFailureException(rre.Message); } catch (Exception e) { _systemError.printf("Failure when checking for recovery state: '%s', continuing as normal.%n", e); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private void assertStoreFormat(org.neo4j.kernel.impl.store.format.RecordFormats expected) throws Exception private void AssertStoreFormat(RecordFormats expected) { Config config = Config.defaults(GraphDatabaseSettings.pagecache_memory, "8m"); using (JobScheduler jobScheduler = new ThreadPoolJobScheduler(), PageCache pageCache = ConfigurableStandalonePageCacheFactory.createPageCache(_fileSystemRule.get(), config, jobScheduler)) { RecordFormats actual = RecordFormatSelector.selectForStoreOrConfig(config, _testDirectory.databaseLayout(), _fileSystemRule, pageCache, NullLogProvider.Instance); assertNotNull(actual); assertEquals(expected.StoreVersion(), actual.StoreVersion()); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static void checkDbState(org.neo4j.io.layout.DatabaseLayout databaseLayout, org.neo4j.kernel.configuration.Config additionalConfiguration) throws org.neo4j.commandline.admin.CommandFailed private static void CheckDbState(DatabaseLayout databaseLayout, Config additionalConfiguration) { try { using (FileSystemAbstraction fileSystem = new DefaultFileSystemAbstraction(), JobScheduler jobScheduler = createInitialisedScheduler(), PageCache pageCache = ConfigurableStandalonePageCacheFactory.createPageCache(fileSystem, additionalConfiguration, jobScheduler)) { assertRecoveryIsNotRequired(fileSystem, pageCache, additionalConfiguration, databaseLayout, new Monitors()); } } catch (RecoveryRequiredException rre) { throw new CommandFailed(rre.Message); } catch (Exception e) { throw new CommandFailed("Failure when checking for recovery state: '%s'." + e.Message, e); } }
private static PageCache CreatePageCache(FileSystemAbstraction fileSystemAbstraction, Config config, JobScheduler jobScheduler) { return(ConfigurableStandalonePageCacheFactory.createPageCache(fileSystemAbstraction, config, jobScheduler)); }