Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public org.neo4j.kernel.internal.GraphDatabaseAPI restartDatabase(RestartAction action, String... configChanges) throws java.io.IOException
        public virtual GraphDatabaseAPI RestartDatabase(RestartAction action, params string[] configChanges)
        {
            FileSystemAbstraction fs = ResolveDependency(typeof(FileSystemAbstraction));

            _database.shutdown();
            action.Run(fs, _databaseLayout);
            _database = null;
            // This DatabaseBuilder has already been configured with the global settings as well as any test-specific settings,
            // so just apply these additional settings.
            _databaseBuilder.Config = stringMap(configChanges);
            return(GraphDatabaseAPI);
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void fulltextIndexesMustBeTransferredInBackup()
        public virtual void FulltextIndexesMustBeTransferredInBackup()
        {
            InitializeTestData();
            VerifyData(_db);
            File backup = _dir.storeDir("backup");

            OnlineBackup.from("127.0.0.1", _backupPort).backup(backup);
            _db.shutdown();

            GraphDatabaseAPI backupDb = StartBackupDatabase(backup);

            VerifyData(backupDb);
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void stopDb()
        public virtual void StopDb()
        {
            if (_graphDb != null)
            {
                _graphDb.shutdown();
            }
            _graphDb = null;
        }
Exemplo n.º 4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void stopDb() throws org.neo4j.internal.kernel.api.exceptions.TransactionFailureException
        private void StopDb()
        {
            if (_transaction != null && _transaction.Open)
            {
                _transaction.close();
            }
            Db.shutdown();
        }
Exemplo n.º 5
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @AfterClass public static void destroyExtensionManager()
        public static void DestroyExtensionManager()
        {
            _manager = null;
            if (_graphDb != null)
            {
                _graphDb.shutdown();
            }
            _graphDb = null;
        }
Exemplo n.º 6
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void stopDb()
        public virtual void StopDb()
        {
            if (_tx != null)
            {
                _tx.close();
            }
            if (_graphDb != null)
            {
                _graphDb.shutdown();
            }
            _tx      = null;
            _config  = null;
            _graphDb = null;
        }
Exemplo n.º 7
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void stopDb() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void StopDb()
        {
            _pageCache.flushAndForce();
            if (_graphDb != null)
            {
                _graphDb.shutdown();
            }
            if (_catchupClient != null)
            {
                _catchupClient.stop();
            }
            if (_catchupServer != null)
            {
                _catchupServer.stop();
            }
        }
Exemplo n.º 8
0
        public override void AfterEach(ExtensionContext extensionContext)
        {
            try
            {
                if (_runningMachines != null)
                {
                    IOUtils.closeAll(_runningMachines);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                Console.Write(e.StackTrace);
            }

            _gdb.shutdown();
        }
Exemplo n.º 9
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void after()
        public virtual void After()
        {
            _db.shutdown();
        }
Exemplo n.º 10
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void tearDown()
        public virtual void TearDown()
        {
            _db.shutdown();
        }
Exemplo n.º 11
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void stop()
        public virtual void Stop()
        {
            _db.shutdown();
        }
Exemplo n.º 12
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @AfterClass public static void shutdownDb()
        public static void ShutdownDb()
        {
            _db.shutdown();
        }
Exemplo n.º 13
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @After public void cleanup() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void Cleanup()
        {
            Db.shutdown();
            _fs.Dispose();
        }
Exemplo n.º 14
0
 public override void Close()
 {
     Database.shutdown();
 }
Exemplo n.º 15
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @AfterClass public static void closeDb()
        public static void CloseDb()
        {
            _db.shutdown();
        }