Beispiel #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");
 }
Beispiel #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;
   }
 }
Beispiel #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");
 }
Beispiel #4
0
 @Override
 public void setHandoverHandler(HandoverHandler handler) {
   netMgr.setHandoverHandler(handler);
 }
Beispiel #5
0
 public void configUpdated() {
   netMgr.configUpdated();
 }
Beispiel #6
0
 @Override
 public void removeNodeFilter(NodeFilter nf) {
   netMgr.removeNodeFilter(nf);
 }
Beispiel #7
0
 @Override
 public void addNodeFilter(NodeFilter nf) {
   netMgr.addNodeFilter(nf);
 }