//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void extractTransactionInformationFromLogsInCustomAbsoluteLocation() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ExtractTransactionInformationFromLogsInCustomAbsoluteLocation() { DatabaseLayout databaseLayout = _directory.databaseLayout(); File customLogLocation = databaseLayout.File("customLogLocation"); ExtractTransactionalInformationFromLogs(customLogLocation.AbsolutePath, customLogLocation, databaseLayout, _directory.databaseDir()); }
private void DeleteStoreFiles(DatabaseLayout databaseLayout, System.Predicate <StoreType> storesToKeep) { foreach (StoreType type in StoreType.values()) { if (type.RecordStore && !storesToKeep(type)) { DatabaseFile databaseFile = type.DatabaseFile; databaseLayout.File(databaseFile).forEach(_fileSystem.deleteFile); databaseLayout.IdFile(databaseFile).ifPresent(_fileSystem.deleteFile); } } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void buildContextWithCustomLogFilesLocations() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void BuildContextWithCustomLogFilesLocations() { string customLogLocation = "customLogLocation"; Config customLogLocationConfig = Config.defaults(logical_logs_location, customLogLocation); DatabaseLayout databaseLayout = TestDirectory.databaseLayout(); LogFiles logFiles = builder(databaseLayout, _fileSystem).withConfig(customLogLocationConfig).withLogVersionRepository(new SimpleLogVersionRepository()).withTransactionIdStore(new SimpleTransactionIdStore()).build(); logFiles.Init(); logFiles.Start(); assertEquals(databaseLayout.File(customLogLocation), logFiles.HighestLogFile.ParentFile); logFiles.Shutdown(); }