Пример #1
0
 /** @syncpriority 90 */
 public void abort() {
   log.fatal("Mina instance ABORTING!");
   ccm.prepareForShutdown();
   scm.abort();
   ccm.abort();
   netMgr.stop();
   started = false;
   log.fatal("Mina instance stopped");
 }
Пример #2
0
 /** @syncpriority 200 */
 public void stop() throws MinaException {
   log.fatal("Mina instance stopping");
   ccm.prepareForShutdown();
   scm.closeAllStreamConns();
   streamMgr.stop();
   sourceMgr.stop();
   streamAdvertiser.cancel();
   ccm.stop();
   netMgr.stop();
   badNodes.clear();
   started = false;
   log.fatal("Mina instance stopped");
 }