@Override
  public void setReplicaDisabledState(ReplicaId replicaId, boolean disable) {
    if (!(replicaId instanceof AmbryReplica)) {
      throw new IllegalArgumentException(
          "HelixParticipant only works with the AmbryReplica implementation of ReplicaId");
    }
    setPartitionDisabledState(replicaId.getPartitionId().toPathString(), disable);
  }
@return a snapshot of registered state change listeners.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixParticipant.java