Esempio n. 1
0
 @Deprecated
 public RpcDispatcher(
     Channel channel,
     MessageListener l,
     MembershipListener l2,
     Object server_obj,
     boolean deadlock_detection) {
   super(channel, l, l2);
   channel.addChannelListener(this);
   this.server_obj = server_obj;
 }
Esempio n. 2
0
 @Deprecated
 public RpcDispatcher(
     Channel channel,
     MessageListener l,
     MembershipListener l2,
     Object server_obj,
     boolean deadlock_detection,
     boolean concurrent_processing) {
   super(channel, l, l2, false, concurrent_processing);
   channel.addChannelListener(this);
   this.server_obj = server_obj;
 }
Esempio n. 3
0
 public MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2) {
   this.channel = channel;
   prot_adapter = new ProtocolAdapter();
   if (channel != null) {
     local_addr = channel.getAddress();
     channel.addChannelListener(this);
   }
   setMessageListener(l);
   setMembershipListener(l2);
   if (channel != null) installUpHandler(prot_adapter, true);
   start();
 }
Esempio n. 4
0
  @Deprecated
  public RpcDispatcher(
      PullPushAdapter adapter,
      Serializable id,
      MessageListener l,
      MembershipListener l2,
      Object server_obj) {
    super(adapter, id, l, l2);

    // Fixes bug #804956
    // channel.setChannelListener(this);
    if (this.adapter != null) {
      Transport t = this.adapter.getTransport();
      if (t != null && t instanceof Channel) {
        ((Channel) t).addChannelListener(this);
      }
    }

    this.server_obj = server_obj;
  }
Esempio n. 5
0
 public RpcDispatcher(
     Channel channel, MessageListener l, MembershipListener l2, Object server_obj) {
   super(channel, l, l2);
   channel.addChannelListener(this);
   this.server_obj = server_obj;
 }