//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); }
//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); }
//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; }
//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(); }
//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; }
//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; }
//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(); } }
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(); }
//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(); }
//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(); }
//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(); }
//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(); }
//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(); }
public override void Close() { Database.shutdown(); }
//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(); }