Examples of MockParticipantManager


Examples of org.apache.helix.integration.manager.MockParticipantManager

    String hostStr = cmd.getOptionValue(host);
    String portStr = cmd.getOptionValue(port);

    String instanceName = hostStr + "_" + portStr;

    MockParticipantManager participant =
        new MockParticipantManager(zkConnectStr, clusterName, instanceName);
    // participant.setTransition(new StoreAccessDiffNodeTransition());
    // participant.setTransition(new StoreAccessOneNodeTransition()));
    // new MockHealthReportJob());
    Runtime.getRuntime().addShutdownHook(new MockHealthReportParticipantShutdownHook(participant));

    // Espresso_driver.py will consume this
    System.out
        .println("MockHealthReportParticipant process started, instanceName: " + instanceName);

    participant.run();
  }
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.