Package org.jboss.remoting.detection

Examples of org.jboss.remoting.detection.ServerInvokerMetadata


            {
               NetworkInstance netInstance = instances[x];
               ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
               for (int i = 0; i < metadata.length; i++)
               {
                  ServerInvokerMetadata data = metadata[i];
                  String[] subsystems = data.getSubSystems();
                  for (int z = 0; z < subsystems.length; z++)
                  {
                     if (subSystem.equalsIgnoreCase(subsystems[z]))
                     {
                        availableList.add(data);

                     }
                  }
               }
            }
            //If alternative servers are found
            if (availableList.size() > 0)
            {
               int index = loadBalancer.selectServer(availableList);
               if (log.isDebugEnabled())
               {
                  log.debug("Total of " + availableList.size() + " available servers found.");
                  log.debug("Using server number " + index);
               }
               //reconnect to the new server
               ServerInvokerMetadata data = (ServerInvokerMetadata) availableList.get(index);
               InvokerLocator newLocator = data.getInvokerLocator();

               if (!remotingClient.getInvoker().getLocator().equals(newLocator))
               {
                  try
                  {
View Full Code Here


      }
      if(instance != null)
      {
         log.debug("removeServer - " + identity);

         final ServerInvokerMetadata il[] = instance.getServerInvokers();
         // put this on a separate thread so we don't block further detection ...
         // TODO: let's put this is a thread pool thread -JGH
         new Thread()
         {
            public void run()
View Full Code Here

            {
               NetworkInstance netInstance = instances[x];
               ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
               for(int i = 0; i < metadata.length; i++)
               {
                  ServerInvokerMetadata data = metadata[i];
                  String[] subsystems = data.getSubSystems();
                  for(int z = 0; z < subsystems.length; z++)
                  {
                     if(subSystem.equalsIgnoreCase(subsystems[z]))
                     {
                        // finally found server with target handler
                        InvokerLocator newLocator = data.getInvokerLocator();
                        if(!remotingClient.getInvoker().getLocator().equals(newLocator))
                        {
                           try
                           {
                              remotingClient = new Client(newLocator);
View Full Code Here

      }
      if(instance != null)
      {
         log.debug("removeServer - " + identity);

         final ServerInvokerMetadata il[] = instance.getServerInvokers();
         // put this on a separate thread so we don't block further detection ...
         // TODO: let's put this is a thread pool thread -JGH
         new Thread()
         {
            public void run()
View Full Code Here

            {
               NetworkInstance netInstance = instances[x];
               ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
               for (int i = 0; i < metadata.length; i++)
               {
                  ServerInvokerMetadata data = metadata[i];
                  String[] subsystems = data.getSubSystems();
                  for (int z = 0; z < subsystems.length; z++)
                  {
                     if (subSystem.equalsIgnoreCase(subsystems[z]))
                     {
                        availableList.add(data);

                     }
                  }
               }
            }
            //If alternative servers are found
            if (availableList.size() > 0)
            {
               int index = loadBalancer.selectServer(availableList);
               if (log.isDebugEnabled())
               {
                  log.debug("Total of " + availableList.size() + " available servers found.");
                  log.debug("Using server number " + index);
               }
               //reconnect to the new server
               ServerInvokerMetadata data = (ServerInvokerMetadata) availableList.get(index);
               InvokerLocator newLocator = data.getInvokerLocator();

               if (!remotingClient.getInvoker().getLocator().equals(newLocator))
               {
                  try
                  {
View Full Code Here

      }
      if(instance != null)
      {
         log.debug(this + " removeServer - " + identity);

         final ServerInvokerMetadata il[] = instance.getServerInvokers();
         // put this on a separate thread so we don't block further detection ...
         // TODO: let's put this is a thread pool thread -JGH
         new Thread()
         {
            public void run()
View Full Code Here

            {
               NetworkInstance netInstance = instances[x];
               ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
               for (int i = 0; i < metadata.length; i++)
               {
                  ServerInvokerMetadata data = metadata[i];
                  String[] subsystems = data.getSubSystems();
                  for (int z = 0; z < subsystems.length; z++)
                  {
                     if (subSystem.equalsIgnoreCase(subsystems[z]))
                     {
                        availableList.add(data);

                     }
                  }
               }
            }
            //If alternative servers are found
            if (availableList.size() > 0)
            {
               int index = loadBalancer.selectServer(availableList);
               if (log.isDebugEnabled())
               {
                  log.debug("Total of " + availableList.size() + " available servers found.");
                  log.debug("Using server number " + index);
               }
               //reconnect to the new server
               ServerInvokerMetadata data = (ServerInvokerMetadata) availableList.get(index);
               InvokerLocator newLocator = data.getInvokerLocator();

               if (!remotingClient.getInvoker().getLocator().equals(newLocator))
               {
                  try
                  {
View Full Code Here

      }
      if(instance != null)
      {
         log.debug(this + " removeServer - " + identity);

         final ServerInvokerMetadata il[] = instance.getServerInvokers();
         // put this on a separate thread so we don't block further detection ...
         // TODO: let's put this is a thread pool thread -JGH
         new Thread()
         {
            public void run()
View Full Code Here

            {
               NetworkInstance netInstance = instances[x];
               ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
               for (int i = 0; i < metadata.length; i++)
               {
                  ServerInvokerMetadata data = metadata[i];
                  String[] subsystems = data.getSubSystems();
                  for (int z = 0; z < subsystems.length; z++)
                  {
                     if (subSystem.equalsIgnoreCase(subsystems[z]))
                     {
                        availableList.add(data);

                     }
                  }
               }
            }
            //If alternative servers are found
            if (availableList.size() > 0)
            {
               int index = loadBalancer.selectServer(availableList);
               if (log.isDebugEnabled())
               {
                  log.debug("Total of " + availableList.size() + " available servers found.");
                  log.debug("Using server number " + index);
               }
               //reconnect to the new server
               ServerInvokerMetadata data = (ServerInvokerMetadata) availableList.get(index);
               InvokerLocator newLocator = data.getInvokerLocator();

               if (!remotingClient.getInvoker().getLocator().equals(newLocator))
               {
                  try
                  {
View Full Code Here

/*     */         {
/* 338 */           NetworkInstance netInstance = instances[x];
/* 339 */           ServerInvokerMetadata[] metadata = netInstance.getServerInvokers();
/* 340 */           for (int i = 0; i < metadata.length; i++)
/*     */           {
/* 342 */             ServerInvokerMetadata data = metadata[i];
/* 343 */             String[] subsystems = data.getSubSystems();
/* 344 */             for (int z = 0; z < subsystems.length; z++)
/*     */             {
/* 346 */               if (!this.subSystem.equalsIgnoreCase(subsystems[z]))
/*     */                 continue;
/* 348 */               availableList.add(data);
/*     */             }
/*     */
/*     */           }
/*     */
/*     */         }
/*     */
/* 355 */         if (availableList.size() > 0)
/*     */         {
/* 357 */           int index = this.loadBalancer.selectServer(availableList);
/* 358 */           if (this.log.isDebugEnabled())
/*     */           {
/* 360 */             this.log.debug("Total of " + availableList.size() + " available servers found.");
/* 361 */             this.log.debug("Using server number " + index);
/*     */           }
/*     */
/* 364 */           ServerInvokerMetadata data = (ServerInvokerMetadata)availableList.get(index);
/* 365 */           InvokerLocator newLocator = data.getInvokerLocator();
/*     */
/* 367 */           if (!this.remotingClient.getInvoker().getLocator().equals(newLocator))
/*     */           {
/*     */             try
/*     */             {
View Full Code Here

TOP

Related Classes of org.jboss.remoting.detection.ServerInvokerMetadata

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.