Examples of testCommand()


Examples of com.splout.db.dnode.DNode.testCommand()

    partitionsByNode1.add(0);
    partitionsByNode1.add(1);

    // shutdown DNode1 and see what happens with auto-rebalancing
    // the "partitionsByNode1" will become under-replicated and after a short period of time should be balanced
    dnode1.testCommand(TestCommands.SHUTDOWN.toString());

    // waiting until the system becomes under-replicated
    new TestUtils.NotWaitingForeverCondition() {

      @Override
View Full Code Here

Examples of com.splout.db.dnode.DNode.testCommand()

      }
    }.waitAtMost(5000);

    // now we bring back dnode1 to life
    // what will happen now is that the partitions it seves will be over-replicated
    dnode1.testCommand(TestCommands.RESTART.toString());

    // waiting now until the system is over-replicated
    new TestUtils.NotWaitingForeverCondition() {

      @Override
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.