@Override
  public int getReplicaId() {
    return region.getRegionInfo().getReplicaId();
  }
Get the replica id of this region.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionWrapperImpl.java