Package org.jboss.remoting

Examples of org.jboss.remoting.Client.removeListener()


      assertTrue(handleThreadDone);
      assertTrue(acknowledgeThreadDone);
      assertFalse(pollerRunning);

      client.setDisconnectTimeout(0);
      client.removeListener(callbackHandler);
      client.disconnect();
   }
  
  
   /**
 
View Full Code Here


      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, true, 333, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertTrue(handleThreadDone);
      assertTrue(acknowledgeThreadDone);
      assertFalse(pollerRunning);

      client.setDisconnectTimeout(0);
      client.removeListener(callbackHandler);
      client.disconnect();
   }
  
  
   protected String getTransport()
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, true, 333, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addListener(handler, metadata);
     
      // Test setting of parameters in CallbackPoller.
      testParameters(client, true, 333, 555);
     
      client.removeListener(handler);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      long start = System.currentTimeMillis();
      for (int i = 0; i < LOOPS; i++)
      {
         client.invoke("test");
         client.addListener(callbackHandler, new HashMap(), null, true);
         client.removeListener(callbackHandler);
         assertEquals(i+1, callbackHandler.counter);
         if ((i+1) % 100 == 0)
            log.info("connections: " + (i+1));
      }
      long finish = System.currentTimeMillis();
View Full Code Here

      done = (Boolean) client.invoke(AsynchCallbackTestServerRoot.GET_STATUS);
      log.info("done 2: " + done);
      assertTrue(done.booleanValue());
      assertTrue(callbackHandler.receivedCallback);
      client.invoke(AsynchCallbackTestServerRoot.RESET);
      client.removeListener(callbackHandler);
      log.info("disconnecting");
      client.disconnect();
      log.info("disconnected");
      log.info(getName() + " PASSES");
   }
View Full Code Here

      // Should have returned.
      Boolean done = (Boolean) client.invoke(AsynchCallbackTestServerRoot.GET_STATUS);
      assertTrue(done.booleanValue());
      assertTrue(callbackHandler.receivedCallback);
      client.invoke(AsynchCallbackTestServerRoot.RESET);
      client.removeListener(callbackHandler);
      client.disconnect();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here

      String threadCount = (String) client.invoke(AsynchCallbackTestServerRoot.GET_THREAD_COUNT);
      assertEquals(AsynchCallbackTestServerRoot.THREAD_COUNT, threadCount);
      String queueSize = (String) client.invoke(AsynchCallbackTestServerRoot.GET_QUEUE_SIZE);
      assertEquals(AsynchCallbackTestServerRoot.QUEUE_SIZE, queueSize);
      client.invoke(AsynchCallbackTestServerRoot.RESET);
      client.removeListener(callbackHandler);
      client.disconnect();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here

      client.addListener(callbackHandler, new HashMap());
      assertEquals(1, callbackPollers.size());
      CallbackPoller callbackPoller2 = (CallbackPoller) callbackPollers.values().iterator().next();
      assertEquals(callbackPoller2, callbackPoller1);

      client.removeListener(callbackHandler);
      client.disconnect();
      connector.stop();
   }
  
  
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.