Package org.jboss.remoting

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


      assertTrue(ConfigTestMarshaller.ok(false,marshallerFQNUnused()));
      assertTrue(ConfigTestUnmarshaller.ok(false, 0));
      assertTrue(LocatorTestMarshaller.ok());
      assertTrue(LocatorTestUnmarshaller.ok());
     
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here


      log.info("client is connected");
      client.invoke("abc", metadata);
     
      // Verify correct authorization was sent.
      assertEquals(auth, server.auth);
      client.disconnect();
   }
  
  
   static class TestHttpServer extends Thread
   {
View Full Code Here

      assertTrue(invoker instanceof MicroSocketClientInvoker);
      MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
      int defaultPingRetries = Integer.parseInt(ConnectionValidator.DEFAULT_NUMBER_OF_PING_RETRIES);
      assertEquals(defaultPingRetries, socketInvoker.getNumberOfCallRetries());
        
      client.disconnect();
   }
  
  
   /**
    * Verifies that number of connection retries is set correctly if it appears
View Full Code Here

      assertTrue(ConfigTestMarshaller.ok(false, marshallerFQNUnused()));
      assertTrue(ConfigTestUnmarshaller.ok(false, 0));
      assertTrue(LocatorTestMarshaller.ok());
      assertTrue(LocatorTestUnmarshaller.ok());
     
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here

      assertTrue(ConfigTestMarshaller.ok(true, marshallerCountFQN()));
      assertTrue(ConfigTestUnmarshaller.ok(true, unmarshallerCountFQN()));
      assertTrue(LocatorTestMarshaller.ok());
      assertTrue(LocatorTestUnmarshaller.ok());
     
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
View Full Code Here

      assertTrue(invoker instanceof MicroSocketClientInvoker);
      MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
      int defaultPingRetries = Integer.parseInt(ConnectionValidator.DEFAULT_NUMBER_OF_PING_RETRIES);
      assertEquals(defaultPingRetries, socketInvoker.getNumberOfCallRetries());
        
      client.disconnect();
   }
  
  
   /**
    * Verifies that other parameters may be set by passing in metadata map.
View Full Code Here

      assertEquals(defaultPingRetries, socketInvoker.getNumberOfCallRetries());

      // Test ReuseAddress.
      assertFalse(socketInvoker.getReuseAddress());
        
      client.disconnect();
   }
  
  
   protected String getTransport()
   {
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Verify ConnectionListener is notified.
      log.info("client disconnecting");
      client.disconnect();
      log.info("client disconnected");
      Thread.sleep(2000);
      assertTrue(TestConnectionListener.gotException);
     
      shutdownServer();
View Full Code Here

      // Test connections.
      Object response = client.invoke("abc");
      log.info("response: " + response);
      assertEquals(QUERY, response);
     
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Verify ConnectionListener is notified.
      log.info("client disconnecting");
      client.disconnect();
      log.info("client disconnected");
      Thread.sleep(2000);
      assertTrue(TestConnectionListener.gotException);
     
      shutdownServer();
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.