NIFI-215: Shut down the ProcessScheduler that is used for Reporting Tasks when NCM is stopped

This commit is contained in:
Mark Payne 2014-12-31 08:07:40 -05:00
parent a183d88f28
commit d879e0d640

View File

@ -512,6 +512,10 @@ public class WebClusterManager implements HttpClusterManager, ProtocolHandler, C
servicesBroadcaster.stop();
}
if ( processScheduler != null ) {
processScheduler.shutdown();
}
if (encounteredException) {
throw new IOException("Failed to shutdown Cluster Manager because one or more cluster services failed to shutdown. Check the logs for details.");
}