public void doOperation() throws Exception {
    logger.info("Type of Operation {}", typeOfOperation);
    switch (typeOfOperation) {
      case "CompareIndexToLog":
        compareIndexEntriesToLogContent(new File(fileToRead), false);
        break;
      case "CompareReplicaIndexesToLog":
        compareReplicaIndexEntriestoLogContent(replicaRootDirectory);
        break;
      default:
        logger.error("Unknown typeOfOperation {}", typeOfOperation);
        break;
    }
  }
Executes the operation with the help of properties passed during initialization of {@link DumpDataTool}
@throws Exception
ambry-tools/src/main/java/com/github/ambry/store/DumpDataTool.java