Examples of CallTracker


Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      System.out.println("sent number of calls " + obj + " " + param);
      String sessionId = (String) obj;
      Integer totalCountInteger = (Integer) param;
      int totalCount = totalCountInteger.intValue();
      System.out.println("received totalCallCount call with total count of " + totalCount + " from " + sessionId);
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.createTotalCount(totalCount);
      }
      else
      {
         SpringRMIHandler callbackHandler = new SpringRMIHandler(sessionId);
         callbackHandler.start();
         tracker = new CallTracker(sessionId, callbackHandler);
         callTrackers.put(sessionId, tracker);
         tracker.createTotalCount(totalCount);
      }
      return totalCountInteger;
   }
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

   {
      Payload payload = (Payload) param;
      int clientInvokeCallCount = payload.getCallNumber();

      String sessionId = (String) obj;
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.verifyClientInvokeCount(clientInvokeCallCount);
      }
      else
      {
         System.err.println("No call tracker exists for session id " + sessionId);
         throw new RuntimeException("No call tracker exists for session id " + sessionId);
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      System.out.println("sent number of calls " + obj + " " + param);
      String sessionId = (String) obj;
      Integer totalCountInteger = (Integer) param;
      int totalCount = totalCountInteger.intValue();
      System.out.println("received totalCallCount call with total count of " + totalCount + " from " + sessionId);
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.createTotalCount(totalCount);
      }
      else
      {
         SpringHessianHandler callbackHandler = new SpringHessianHandler();
         callbackHandler.start();
         tracker = new CallTracker(sessionId, callbackHandler);
         callTrackers.put(sessionId, tracker);
         tracker.createTotalCount(totalCount);
      }
      return totalCountInteger;
   }
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

   {
      Payload payload = (Payload) param;
      int clientInvokeCallCount = payload.getCallNumber();

      String sessionId = (String) obj;
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.verifyClientInvokeCount(clientInvokeCallCount);
      }
      else
      {
         System.err.println("No call tracker exists for session id " + sessionId);
         throw new RuntimeException("No call tracker exists for session id " + sessionId);
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      if(PerformanceClientTest.NUM_OF_CALLS.equals(method))
      {
         Integer totalCountInteger = (Integer) param;
         int totalCount = totalCountInteger.intValue();
         System.out.println("received totalCallCount call with total count of " + totalCount + " from " + sessionId);
         CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
         if(tracker != null)
         {
            tracker.createTotalCount(totalCount);
         }
         else
         {
            int port = ((Integer)callbackServerPort.get()).intValue();
            SocketHandler callbackHandler = new SocketHandler(serverBindAddress, sessionId, port);
            tracker = new CallTracker(sessionId, callbackHandler);
            callTrackers.put(sessionId, tracker);
            tracker.createTotalCount(totalCount);
         }
         return totalCountInteger;

      }
      else if(PerformanceClientTest.TEST_INVOCATION.equals(method))
      {
         Payload clientPayload = (Payload) param;
         int clientInvokerCallCount = clientPayload.getCallNumber();

         CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
         if(tracker != null)
         {
            tracker.verifyClientInvokeCount(clientInvokerCallCount);
         }
         else
         {
            log.error("No call tracker exists for session id " + sessionId);
            throw new Exception("No call tracker exists for session id " + sessionId);
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      System.out.println("sent number of calls " + obj + " " + param);
      String sessionId = (String) obj;
      Integer totalCountInteger = (Integer) param;
      int totalCount = totalCountInteger.intValue();
      System.out.println("received totalCallCount call with total count of " + totalCount + " from " + sessionId);
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if(tracker != null)
      {
         tracker.createTotalCount(totalCount);
      }
      else
      {
         RMIHandler callbackHandler = new RMIHandler(host, sessionId);
         tracker = new CallTracker(sessionId, callbackHandler);
         callTrackers.put(sessionId, tracker);
         tracker.createTotalCount(totalCount);
      }
      return totalCountInteger;
   }
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      Payload payload = (Payload) param;
      //System.out.println(payload);
      int clientInvokeCallCount = payload.getCallNumber();

      String sessionId = (String) obj;
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if(tracker != null)
      {
         tracker.verifyClientInvokeCount(clientInvokeCallCount);
      }
      else
      {
         log.error("No call tracker exists for session id " + sessionId);
         throw new RemoteException("No call tracker exists for session id " + sessionId);
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

      System.out.println("sent number of calls " + obj + " " + param);
      String sessionId = (String) obj;
      Integer totalCountInteger = (Integer) param;
      int totalCount = totalCountInteger.intValue();
      System.out.println("received totalCallCount call with total count of " + totalCount + " from " + sessionId);
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.createTotalCount(totalCount);
      }
      else
      {
         SpringHttpHandler callbackHandler = new SpringHttpHandler(sessionId);
         callbackHandler.start();
         tracker = new CallTracker(sessionId, callbackHandler);
         callTrackers.put(sessionId, tracker);
         tracker.createTotalCount(totalCount);
      }
      return totalCountInteger;
   }
View Full Code Here

Examples of org.jboss.test.remoting.performance.synchronous.CallTracker

   {
      Payload payload = (Payload) param;
      int clientInvokeCallCount = payload.getCallNumber();

      String sessionId = (String) obj;
      CallTracker tracker = (CallTracker) callTrackers.get(sessionId);
      if (tracker != null)
      {
         tracker.verifyClientInvokeCount(clientInvokeCallCount);
      }
      else
      {
         System.err.println("No call tracker exists for session id " + sessionId);
         throw new RuntimeException("No call tracker exists for session id " + sessionId);
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.