Package org.jboss.remoting

Examples of org.jboss.remoting.MicroRemoteClientInvoker.terminateLease()


      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
View Full Code Here


      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
View Full Code Here

      assertEquals("abc", client.invoke("abc"));
      log.info("connection is good");
     
      // Test lease behavior.
      MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
      clientInvoker.terminateLease(client.getSessionId(), 0);
      TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
      leasePinger.setLeasePingerId(new GUID().toString());
      leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
      leasePinger.startPing();
      Thread.sleep(LEASE_PERIOD * 4);
 
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.