Package org.apache.helix.api.accessor

Examples of org.apache.helix.api.accessor.ParticipantAccessor


  void swapParticipants(String[] optValues) {
    String clusterName = optValues[0];
    String oldParticipantName = optValues[1];
    String newParticipantName = optValues[2];
    ParticipantAccessor accessor = participantAccessor(clusterName);
    accessor.swapParticipants(ParticipantId.from(oldParticipantName),
        ParticipantId.from(newParticipantName));
  }
View Full Code Here


    String participantName = optValues[1];
    String resourceName = optValues[2];
    String partitionName = optValues[3];

    Set<PartitionId> partitionIds = ImmutableSet.of(PartitionId.from(partitionName));
    ParticipantAccessor accessor = participantAccessor(clusterName);
    accessor.resetPartitionsForParticipant(ParticipantId.from(participantName),
        ResourceId.from(resourceName), partitionIds);
  }
View Full Code Here

  void resetParticipant(String[] optValues) {
    String clusterName = optValues[0];
    String participantName = optValues[1];
    Set<ParticipantId> participantIds = ImmutableSet.of(ParticipantId.from(participantName));
    ParticipantAccessor accessor = participantAccessor(clusterName);
    accessor.resetParticipants(participantIds);
  }
View Full Code Here

    return new ResourceAccessor(createDataAccessor(clusterId));
  }

  @Override
  public ParticipantAccessor createParticipantAccessor(ClusterId clusterId) {
    return new ParticipantAccessor(createDataAccessor(clusterId));
  }
View Full Code Here

TOP

Related Classes of org.apache.helix.api.accessor.ParticipantAccessor

Copyright © 2018 www.massapicom. 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.