@Override protected void doStop() throws Exception { LOG.info("Stopping " + notifier); managementStrategy.removeEventNotifier(notifier); ServiceHelper.stopAndShutdownService(notifier); }
@Override protected void doStart() throws Exception { LOG.info("Starting notifier " + notifier); ServiceHelper.startService(notifier); managementStrategy.addEventNotifier(notifier); }