/** * Shuts node off to writes, empties memtables and the commit log. */ public synchronized void drain() throws IOException, InterruptedException, ExecutionException { drain(false); }
/** * Shuts node off to writes, empties memtables and the commit log. */ public synchronized void drain() throws IOException, InterruptedException, ExecutionException { drain(false); }
/** * Shuts node off to writes, empties memtables and the commit log. */ public synchronized void drain() throws IOException, InterruptedException, ExecutionException { drain(false); }
@Override public void runMayThrow() throws InterruptedException, ExecutionException, IOException { drain(true); if (FBUtilities.isWindows) WindowsTimer.endTimerPeriod(DatabaseDescriptor.getWindowsTimerInterval()); // Cleanup logback DelayingShutdownHook logbackHook = new DelayingShutdownHook(); logbackHook.setContext((LoggerContext)LoggerFactory.getILoggerFactory()); logbackHook.run(); } }, "StorageServiceShutdownHook");
@Override public void runMayThrow() throws InterruptedException, ExecutionException, IOException { drain(true); if (FBUtilities.isWindows) WindowsTimer.endTimerPeriod(DatabaseDescriptor.getWindowsTimerInterval()); LoggingSupportFactory.getLoggingSupport().onShutdown(); } }, "StorageServiceShutdownHook");
@Override public void runMayThrow() throws InterruptedException, ExecutionException, IOException { drain(true); if (FBUtilities.isWindows) WindowsTimer.endTimerPeriod(DatabaseDescriptor.getWindowsTimerInterval()); LoggingSupportFactory.getLoggingSupport().onShutdown(); } }, "StorageServiceShutdownHook");