Package com.gitblit.fanout

Examples of com.gitblit.fanout.FanoutClient.stop()


    // ping and wait for pong
    client.ping();
    Thread.sleep(500);

    // restart client
    client.stop();
    Thread.sleep(1000);
    client.startSynchronously();

    // ping and wait for pong
    client.ping();
View Full Code Here


    // ping and wait for pong
    client.ping();
    Thread.sleep(500);

    // kill all
    client.stop();
    service.stop();

    // confirm expected pong count
    assertEquals(3, pongCount.get());
  }
View Full Code Here

    assertEquals("avocado", announcementsA.get("a"));
    assertEquals("beet", announcementsA.get("b"));
    assertEquals("carrot", announcementsA.get("c"));

    clientA.stop();
    clientB.stop();
    service.stop();
  }

  protected void testDisruption(FanoutService service) throws Exception  {
    System.out.println(MessageFormat.format("\n\n========================================\nDISRUPTION TEST {0}\n========================================\n\n", service.toString()));
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.