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