Package net.kuujo.copycat.test

Examples of net.kuujo.copycat.test.TestCluster.nodes()


    cluster.start();

    node1.await().leaderElected();

    int leaderCount = 0;
    for (TestNode node : cluster.nodes()) {
      if (node.instance().isLeader()) {
        leaderCount++;
      }
    }
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.