Package org.jboss.remoting

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


      // Verify ConnectionValidator has not stopped.
      Thread.sleep(4000);
      assertFalse(clientListener.notified);
      assertTrue(client.getPingPeriod() > -1);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here


     
      // Verify new LeasePinger is created if Client reconnects.
      client.connect(clientConnectionListener, null);
      assertNotSame(leasePinger1, field.get(client.getInvoker()));
     
      client.removeConnectionListener(clientConnectionListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertTrue(clientConnectionListener2.throwable instanceof Exception);
      assertEquals("Could not connect to server!", clientConnectionListener2.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertTrue(clientConnectionListener2.throwable instanceof Exception);
      assertEquals("Could not connect to server!", clientConnectionListener2.throwable.getMessage());
     
      client1.removeConnectionListener(clientConnectionListener1);
      client1.disconnect();
      client2.removeConnectionListener(clientConnectionListener2);
      client2.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addConnectionListener(listener, 333);
     
      // Test setting of parameters in ConnectionListener.
      doTestParameters(client, 333, 1000, true);
     
      client.removeConnectionListener(listener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addConnectionListener(listener);
     
      // Test setting of parameters in ConnectionListener.
      doTestParameters(client, 111, 1000, true);
     
      client.removeConnectionListener(listener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addConnectionListener(listener);
     
      // Test setting of parameters in ConnectionListener.
      doTestParameters(client, 2000, 1000, true);
     
      client.removeConnectionListener(listener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addConnectionListener(listener);
     
      // Test setting of parameters in ConnectionListener.
      doTestParameters(client, 111, 1000, true);
     
      client.removeConnectionListener(listener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      client.addConnectionListener(listener);
     
      // Test setting of parameters in ConnectionListener.
      doTestParameters(client, 2000, 1000, true);
     
      client.removeConnectionListener(listener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

     
      // Verfiy LeasePinger has stopped.
      timerTask = (TimerTask) field.get(pinger);
      assertNull(timerTask);
     
      client.removeConnectionListener(clientListener);
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
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.