예제 #1
0
 @Override
 protected void doStop() throws Exception {
   oort.deobserveChannel(broadcastChannelName);
   BayeuxServer bayeuxServer = oort.getBayeuxServer();
   bayeuxServer.getChannel(resultChannelName).removeListener(this);
   bayeuxServer.getChannel(broadcastChannelName).removeListener(this);
   bayeuxServer.getChannel(forwardChannelName).removeListener(this);
   session.disconnect();
   logger.debug("Stopped {}", this);
 }
예제 #2
0
 @Override
 protected void doStop() throws Exception {
   oort.deobserveChannel(broadcastChannelName);
   BayeuxServer bayeuxServer = oort.getBayeuxServer();
   ServerChannel channel = bayeuxServer.getChannel(resultChannelName);
   if (channel != null) {
     channel.removeListener(this);
   }
   channel = bayeuxServer.getChannel(broadcastChannelName);
   if (channel != null) {
     channel.removeListener(this);
   }
   channel = bayeuxServer.getChannel(forwardChannelName);
   if (channel != null) {
     channel.removeListener(this);
   }
   session.disconnect();
   if (logger.isDebugEnabled()) {
     logger.debug("Stopped {}", this);
   }
 }