public boolean isShutdown() { return wrapped.isShutdown(); }
public boolean isShuttingDown() { return wrapped.isShutdown(); }
public boolean isShuttingDown() { return wrapped.isShutdown(); }
public boolean isShuttingDown() { return wrapped.isShutdown(); }
public boolean isShutdown() { return wrapped.isShutdown(); }
public boolean isShutdown() { return wrapped.isShutdown(); }
/** * Wait for callbacks and don't allow any more to be created (since they could require writing hints) */ public void shutdown() { logger.info("Waiting for messaging service to quiesce"); // We may need to schedule hints on the mutation stage, so it's erroneous to shut down the mutation stage first assert !StageManager.getStage(Stage.MUTATION).isShutdown(); // the important part if (!callbacks.shutdownBlocking()) logger.warn("Failed to wait for messaging service callbacks shutdown"); // attempt to humor tests that try to stop and restart MS try { for (SocketThread th : socketThreads) try { th.close(); } catch (IOException e) { // see https://issues.apache.org/jira/browse/CASSANDRA-10545 handleIOExceptionOnClose(e); } } catch (IOException e) { throw new IOError(e); } }
/** * Wait for callbacks and don't allow any more to be created (since they could require writing hints) */ public void shutdown() { logger.info("Waiting for messaging service to quiesce"); // We may need to schedule hints on the mutation stage, so it's erroneous to shut down the mutation stage first assert !StageManager.getStage(Stage.MUTATION).isShutdown(); // the important part if (!callbacks.shutdownBlocking()) logger.warn("Failed to wait for messaging service callbacks shutdown"); // attempt to humor tests that try to stop and restart MS try { for (SocketThread th : socketThreads) try { th.close(); } catch (IOException e) { // see https://issues.apache.org/jira/browse/CASSANDRA-10545 handleIOExceptionOnClose(e); } } catch (IOException e) { throw new IOError(e); } }
/** * Wait for callbacks and don't allow any more to be created (since they could require writing hints) */ public void shutdown() { logger.info("Waiting for messaging service to quiesce"); // We may need to schedule hints on the mutation stage, so it's erroneous to shut down the mutation stage first assert !StageManager.getStage(Stage.MUTATION).isShutdown(); // the important part if (!callbacks.shutdownBlocking()) logger.warn("Failed to wait for messaging service callbacks shutdown"); // attempt to humor tests that try to stop and restart MS try { for (SocketThread th : socketThreads) try { th.close(); } catch (IOException e) { // see https://issues.apache.org/jira/browse/CASSANDRA-10545 handleIOExceptionOnClose(e); } } catch (IOException e) { throw new IOError(e); } }