Package org.jboss.remoting

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


      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");
   }
  
  
   public void testASynchronousCallbackServerSide() throws Throwable
View Full Code Here


      // Test ping retries.
      assertTrue(invoker instanceof MicroSocketClientInvoker);
      MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
      assertEquals(13, socketInvoker.getNumberOfCallRetries());
        
      client.disconnect();
   }
  
  
   /**
    * Verifies that number of ping retries is set correctly if a call is made to
View Full Code Here

      // Test ping retries.
      assertTrue(invoker instanceof MicroSocketClientInvoker);
      MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
      assertEquals(7, socketInvoker.getNumberOfCallRetries());
        
      client.disconnect();
   }
  
  
   /**
    * Verifies that number of ping retries is set correctly if it appears in both
View Full Code Here

      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");
   }
  
  
   protected abstract String getTransport();
View Full Code Here

      assertEquals(52, password.length());
      metadata.put("http.basic.username", name);
      metadata.put("http.basic.password", password);
      assertEquals("xyz", client.invoke("xyz", metadata));

      client.disconnect();
      connector.stop();
   }
  
  
   protected String getTransport()
View Full Code Here

      assertTrue(ConfigTestMarshaller.ok(false, marshallerDatatypeUnused()));
      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(false, marshallerDatatypeUnused()));
      assertTrue(ConfigTestUnmarshaller.ok(false, 0));
      assertTrue(LocatorTestMarshaller.ok());
      assertTrue(LocatorTestUnmarshaller.ok());
     
      client.disconnect();
      shutdownServer();
      log.info(getName() + " PASSES");
   }
  
  
View Full Code Here

      // Test ping retries.
      assertTrue(invoker instanceof MicroSocketClientInvoker);
      MicroSocketClientInvoker socketInvoker = (MicroSocketClientInvoker) invoker;
      assertEquals(19, socketInvoker.getNumberOfCallRetries());
        
      client.disconnect();
   }
  
  
   /**
    * Verifies that number of connection retries is set correctly if it appears
View Full Code Here

      assertTrue(ConfigTestMarshaller.ok(true, marshallerCountDatatype()));
      assertTrue(ConfigTestUnmarshaller.ok(true, unmarshallerCountDatatype()));
      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 number of connection retries is set correctly if a call is made to
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.