예제 #1
0
 private void CloseFileSystem()
 {
     try
     {
         _fileSystem.Dispose();
     }
     catch (IOException e)
     {
         throw new UncheckedIOException(e);
     }
 }
예제 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void complete(boolean success) throws java.io.IOException
        public virtual void Complete(bool success)
        {
            try
            {
                if (success && _testDirectory != null && !_keepDirectoryAfterSuccessfulTest)
                {
                    _fileSystem.deleteRecursively(_testDirectory);
                }
                _testDirectory         = null;
                _storeLayout           = null;
                _defaultDatabaseLayout = null;
            }
            finally
            {
                _fileSystem.Dispose();
            }
        }
예제 #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @AfterEach void tearDown() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        internal virtual void TearDown()
        {
            Fsa.Dispose();
        }
예제 #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void close() throws java.io.IOException
        public override void Close()
        {
            _fileSystemAbstraction.Dispose();
        }
예제 #5
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void close() throws Exception
            public override void Close()
            {
                PageCache.close();
                Scheduler.close();
                FileSystem.Dispose();
            }
예제 #6
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void shutdown() throws Throwable
        public override void Shutdown()
        {
            _fileSystemAbstraction.Dispose();
        }