Package org.jboss.remoting.transport.multiplex.utility

Examples of org.jboss.remoting.transport.multiplex.utility.AddressPair


   {
      log.debug("server rule 2");
      isVirtual = true;

      connectSocketAddress = new InetSocketAddress(connectHost, connectPort);   
      addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
      socketGroupInfo = (SocketGroupInfo) addressPairMap.get(addressPair);
     
      // If socketGroupInfo exists, it's because it was created, along with a priming socket (if necessary),
      // by a MultiplexClientInvoker.
      if (socketGroupInfo != null)
View Full Code Here


          socketGroupInfo.getBindAddress() != null &&
          addressPair == null)
      {
         String bindHost = socketGroupInfo.getBindAddress().getHostName();
         int bindPort = socketGroupInfo.getBindPort();
         addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
      }

      readyToRun = true;
   }
View Full Code Here

            socketGroupInfo.setConnectPort(connectPort);
            socketGroupInfo.addClientInvoker(this);

            // We got socketGroupInfo by socketGroupId.  Make sure it is also stored by AddressPair.
            bindHost = bindAddress.getHostName();
            addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
            MultiplexServerInvoker.getAddressPairMap().put(addressPair, socketGroupInfo);

            MultiplexServerInvoker serverInvoker = socketGroupInfo.getServerInvoker();
            if (serverInvoker != null)
               serverInvoker.finishStart();

            finishStart();
            return;
         }

         bindHost = (String) parameters.get(Multiplex.MULTIPLEX_BIND_HOST);
         bindPortString = (String) parameters.get(Multiplex.MULTIPLEX_BIND_PORT);

         if (bindHost != null && bindPortString == null)
         {
            bindPortString = "0";
         }

         if (bindHost == null && bindPortString != null)
         {
            bindHost = "localhost";
         }

         if (bindHost != null)
         {
            log.debug("client rule 2");

            try
            {
               bindPort = Integer.parseInt(bindPortString);
            }
            catch (NumberFormatException e)
            {
               throw new IOException("number format error for bindPort: " + bindPortString);
            }

            if (bindPort != 0)
            {
               bindSocketAddress = new InetSocketAddress(bindHost, bindPort);
               addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
               socketGroupInfo = (SocketGroupInfo) MultiplexServerInvoker.getAddressPairMap().get(addressPair);
            }

            // If socketGroupInfo exists, it's because it was created, along with a priming socket, by a
            // MultiplexServerInvoker.  Note that we don't look for a match if the bind port was
View Full Code Here

     
      if (socketGroupInfo != null && addressPair == null)
      {
         String connectHost = socketGroupInfo.getConnectAddress().getHostName();
         int connectPort = socketGroupInfo.getConnectPort();
         addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
      }
     
      try
      {
         super.start();
View Full Code Here

                             bindAddress, bindPort, configuration, getTimeout());
      }

      // We got socketGroupInfo by socketGroupId.  Make sure it is also stored by AddressPair.
      String connectHost = connectAddress.getHostName();
      addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
      addressPairMap.put(addressPair, socketGroupInfo);
   }
View Full Code Here

   {
      log.debug("server rule 2");
      isVirtual = true;

      connectSocketAddress = new InetSocketAddress(connectHost, connectPort);   
      addressPair = new AddressPair(connectHost, connectPort, bindHost, bindPort);
      socketGroupInfo = (SocketGroupInfo) addressPairMap.get(addressPair);
     
      // If socketGroupInfo exists, it's because it was created, along with a priming socket (if necessary),
      // by a MultiplexClientInvoker.
      if (socketGroupInfo != null)
View Full Code Here

/*      */
/*  462 */     if ((this.socketGroupInfo != null) && (this.addressPair == null))
/*      */     {
/*  464 */       String connectHost = this.socketGroupInfo.getConnectAddress().getHostName();
/*  465 */       int connectPort = this.socketGroupInfo.getConnectPort();
/*  466 */       this.addressPair = new AddressPair(connectHost, connectPort, this.bindHost, this.bindPort);
/*      */     }
/*      */
/*      */     try
/*      */     {
/*  471 */       super.start();
View Full Code Here

/*      */       }
/*  947 */       createPrimingSocket(this.socketGroupInfo, connectAddress.getHostName(), connectPort, this.bindAddress, this.bindPort, this.configuration, getTimeout());
/*      */     }
/*      */
/*  952 */     String connectHost = connectAddress.getHostName();
/*  953 */     this.addressPair = new AddressPair(connectHost, connectPort, this.bindHost, this.bindPort);
/*  954 */     addressPairMap.put(this.addressPair, this.socketGroupInfo);
/*      */   }
View Full Code Here

/*      */   {
/*  961 */     log.debug("server rule 2");
/*  962 */     this.isVirtual = true;
/*      */
/*  964 */     this.connectSocketAddress = new InetSocketAddress(connectHost, connectPort);
/*  965 */     this.addressPair = new AddressPair(connectHost, connectPort, this.bindHost, this.bindPort);
/*  966 */     this.socketGroupInfo = ((SocketGroupInfo)addressPairMap.get(this.addressPair));
/*      */
/*  970 */     if (this.socketGroupInfo != null)
/*      */     {
/*  973 */       if (this.serverMultiplexId != null)
View Full Code Here

/*     */
/* 136 */     if ((this.socketGroupInfo != null) && (this.socketGroupInfo.getBindAddress() != null) && (this.addressPair == null))
/*     */     {
/* 140 */       String bindHost = this.socketGroupInfo.getBindAddress().getHostName();
/* 141 */       int bindPort = this.socketGroupInfo.getBindPort();
/* 142 */       this.addressPair = new AddressPair(this.connectHost, this.connectPort, bindHost, bindPort);
/*     */     }
/*     */
/* 145 */     this.readyToRun = true;
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.transport.multiplex.utility.AddressPair

Copyright © 2018 www.massapicom. 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.