private static void ForceLogRotationAndPruning(CoreClusterMember core) { try { DependencyResolver dependencyResolver = core.Database().DependencyResolver; dependencyResolver.ResolveDependency(typeof(LogRotation)).rotateLogFile(); SimpleTriggerInfo info = new SimpleTriggerInfo("test"); dependencyResolver.ResolveDependency(typeof(CheckPointer)).forceCheckPoint(info); } catch (IOException e) { throw new UncheckedIOException(e); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: private static void checkPoint(org.neo4j.kernel.internal.GraphDatabaseAPI db) throws java.io.IOException private static void CheckPoint(GraphDatabaseAPI db) { TriggerInfo triggerInfo = new SimpleTriggerInfo("test"); Db.DependencyResolver.resolveDependency(typeof(CheckPointer)).forceCheckPoint(triggerInfo); }