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