private void dumpReplicaToken() throws Exception {
    logger.info("Dumping replica token file {}", fileToRead);
    DataInputStream stream = new DataInputStream(new FileInputStream(fileToRead));
    try {
      List<RemoteReplicaInfo.ReplicaTokenInfo> replicaTokenInfoList = replicaTokenSerde.deserializeTokens(stream, fileToRead);
      for (RemoteReplicaInfo.ReplicaTokenInfo replicaTokenInfo : replicaTokenInfoList) {
        logger.info(replicaTokenInfo.toString() + " " + replicaTokenInfo.getReplicaToken().toString());
      }
    } catch (IOException e) {
      throw new ReplicationException("IO error while reading from replica token file " + fileToRead, e);
    }
  }
Dumps replica token file
@throws Exception
ambry-tools/src/main/java/com/github/ambry/store/DumpReplicaTokenTool.java