public int getMetaReplicaIdFromPath(String path) {
    // Extract the znode from path. The prefix is of the following format.
    // baseZNode + PATH_SEPARATOR.
    int prefixLen = baseZNode.length() + 1;
    return getMetaReplicaIdFromZNode(path.substring(prefixLen));
  }
Parses the meta replicaId from the passed path.
@param path the name of the full path which includes baseZNode.
hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZNodePaths.java