Examples of UpHandler


Examples of org.jgroups.UpHandler

                                    InboundInvocationHandler inboundInvocationHandler) {
      // MessageDispatcher superclass constructors will call start() so perform all init here
      this.setMembershipListener(transport);
      this.setChannel(channel);
      // If existing up handler is a muxing up handler, setChannel(..) will not have replaced it
      UpHandler handler = channel.getUpHandler();
      if (handler instanceof Muxer<?>) {
         @SuppressWarnings("unchecked")
         Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
         mux.setDefaultHandler(this.prot_adapter);
      }
View Full Code Here

Examples of org.jgroups.UpHandler

                                    InboundInvocationHandler inboundInvocationHandler) {
      // MessageDispatcher superclass constructors will call start() so perform all init here
      this.setMembershipListener(transport);
      this.setChannel(channel);
      // If existing up handler is a muxing up handler, setChannel(..) will not have replaced it
      UpHandler handler = channel.getUpHandler();
      if (handler instanceof Muxer<?>) {
         @SuppressWarnings("unchecked")
         Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
         mux.setDefaultHandler(this.prot_adapter);
      }
View Full Code Here

Examples of org.jgroups.UpHandler

      if (dispatcher != null) {
         log.stoppingRpcDispatcher(clusterName);
         dispatcher.stop();
         if (channel != null) {
            // Remove reference to up_handler
            UpHandler handler = channel.getUpHandler();
            if (handler instanceof Muxer<?>) {
               @SuppressWarnings("unchecked")
               Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
               mux.setDefaultHandler(null);
            } else {
View Full Code Here

Examples of org.jgroups.UpHandler

      // MessageDispatcher superclass constructors will call start() so perform all init here
      this.setMembershipListener(transport);
      this.setChannel(channel);
      // If existing up handler is a muxing up handler, setChannel(..) will not have replaced it
      UpHandler handler = channel.getUpHandler();
      if (handler instanceof Muxer<?>) {
         @SuppressWarnings("unchecked")
         Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
         mux.setDefaultHandler(this.prot_adapter);
      }
View Full Code Here

Examples of org.jgroups.UpHandler

         return stateId != null && stateId.startsWith(CoreGroupCommunicationService.this.stateIdPrefix );
      }

      @SuppressWarnings("unchecked")
      private Muxer<UpHandler> getMuxer() {
          UpHandler handler = channel.getUpHandler();
          return ((handler != null) && (handler instanceof Muxer<?>)) ? (Muxer<UpHandler>) handler : null;
      }
View Full Code Here

Examples of org.jgroups.UpHandler

    NodeSelectorService masterNodeSelector = serviceManager.requestService( NodeSelectorService.class );
    JGroupsMasterMessageListener listener = new JGroupsMasterMessageListener( context, masterNodeSelector );

    JChannel channel = channelContainer.getChannel();

    UpHandler handler = channel.getUpHandler();
    if ( handler instanceof Muxer ) {
      Short muxId = (Short) props.get( MUX_ID );
      if ( muxId == null ) {
        throw log.missingJGroupsMuxId( DispatchMessageSender.MUX_ID );
      }
View Full Code Here

Examples of org.jgroups.UpHandler

      // MessageDispatcher superclass constructors will call start() so perform all init here
      this.setMembershipListener(transport);
      this.setChannel(channel);
      // If existing up handler is a muxing up handler, setChannel(..) will not have replaced it
      UpHandler handler = channel.getUpHandler();
      if (handler instanceof Muxer<?>) {
         @SuppressWarnings("unchecked")
         Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
         mux.setDefaultHandler(this.prot_adapter);
      }
View Full Code Here

Examples of org.jgroups.UpHandler

      // MessageDispatcher superclass constructors will call start() so perform all init here
      this.setMembershipListener(transport);
      this.setChannel(channel);
      // If existing up handler is a muxing up handler, setChannel(..) will not have replaced it
      UpHandler handler = channel.getUpHandler();
      if (handler instanceof Muxer<?>) {
         @SuppressWarnings("unchecked")
         Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
         mux.setDefaultHandler(this.prot_adapter);
      }
View Full Code Here

Examples of org.jgroups.UpHandler

      if (dispatcher != null) {
         log.stoppingRpcDispatcher();
         dispatcher.stop();
         if (channel != null) {
            // Remove reference to up_handler
            UpHandler handler = channel.getUpHandler();
            if (handler instanceof Muxer<?>) {
               @SuppressWarnings("unchecked")
               Muxer<UpHandler> mux = (Muxer<UpHandler>) handler;
               mux.setDefaultHandler(null);
            } else {
View Full Code Here

Examples of org.jgroups.UpHandler

    NodeSelectorService masterNodeSelector = serviceManager.requestService( NodeSelectorService.class );
    JGroupsMasterMessageListener listener = new JGroupsMasterMessageListener( context, masterNodeSelector );

    JChannel channel = channelContainer.getChannel();

    UpHandler handler = channel.getUpHandler();
    if ( handler instanceof Muxer ) {
      Short muxId = (Short) props.get( MUX_ID );
      if ( muxId == null ) {
        throw log.missingJGroupsMuxId( DispatchMessageSender.MUX_ID );
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.