Beispiel #1
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()
        {
            // Here as a safety mechanism when e.g. panicking.
            if (_flusher != null)
            {
                StopFlushingPageCache();
            }

            FlushAndForce();

            // Flush out all pending changes
            closeAll(_propertyKeyRepository, _labelRepository, _relationshipTypeRepository);

            // Close the neo store
            _life.shutdown();
            closeAll(_neoStores, _temporaryNeoStores);
            if (!_externalPageCache)
            {
                _pageCache.close();
            }

            if (_successful)
            {
                Cleanup();
            }
        }
 public override void Shutdown()
 {
     _life.shutdown();
 }
Beispiel #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void TearDown()
        {
            _life.stop();
            _life.shutdown();
            _fileSystem.Dispose();
        }