@Override
  public void setInitialLocalPartitions(Collection<String> localPartitions) {
    localPartitions.forEach(p -> localPartitionAndState.put(p, ReplicaState.OFFLINE));
  }
Instantiate a HelixParticipant.
@param clusterMapConfig the {@link ClusterMapConfig} associated with this participant.
@param helixFactory the {@link HelixFactory} to use to get the {@link HelixManager}.
@param metricRegistry the {@link MetricRegistry} to instantiate {@link HelixParticipantMetrics}.
@param zkConnectStr the address identifying the zk service which this participant interacts with.
@param isSoleParticipant whether this is the sole participant on current node.
ambry-clustermap/src/main/java/com/github/ambry/clustermap/HelixParticipant.java