Examples of readParticipants()


Examples of org.apache.helix.api.accessor.ClusterAccessor.readParticipants()

    StringBuilder sb =
        new StringBuilder("Existing resources in cluster ").append(clusterName).append(":\n");
    for (ResourceId resourceId : resources) {
      sb.append(resourceId.stringify()).append('\n');
    }
    Set<ParticipantId> participants = accessor.readParticipants().keySet();
    sb.append("Participants in cluster ").append(clusterName).append(":\n");
    for (ParticipantId participantId : participants) {
      sb.append(participantId.stringify()).append('\n');
    }
    System.out.print(sb.toString());
View Full Code Here

Examples of org.apache.helix.api.accessor.ClusterAccessor.readParticipants()

  }

  void listParticipants(String[] optValues) {
    String clusterName = optValues[0];
    ClusterAccessor accessor = clusterAccessor(clusterName);
    Set<ParticipantId> participants = accessor.readParticipants().keySet();
    StringBuilder sb =
        new StringBuilder("Participants in cluster ").append(clusterName).append(":\n");
    for (ParticipantId participantId : participants) {
      sb.append(participantId.stringify()).append('\n');
    }
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.