public static List<org.apache.hadoop.hbase.client.RegionInfo>
    getOnlineRegions(final AdminService.BlockingInterface admin) throws IOException {
    return getOnlineRegions(null, admin);
  }
A helper to get the all the online regions on a region server using admin protocol.
@return a list of online region info
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java