Example #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");
 }
Example #2
0
 public void start() throws MinaException {
   try {
     log.info(Tagline.getTagLine());
     netMgr.start();
     started = true;
   } catch (MinaException e) {
     SafetyNet.notifyException(e, this);
     log.fatal("MinaException caught on startup, stopping Mina");
     stop();
     throw e;
   }
 }
Example #3
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");
 }
Example #4
0
 @Override
 public void setHandoverHandler(HandoverHandler handler) {
   netMgr.setHandoverHandler(handler);
 }
Example #5
0
 public void configUpdated() {
   netMgr.configUpdated();
 }
Example #6
0
 @Override
 public void removeNodeFilter(NodeFilter nf) {
   netMgr.removeNodeFilter(nf);
 }
Example #7
0
 @Override
 public void addNodeFilter(NodeFilter nf) {
   netMgr.addNodeFilter(nf);
 }