public static int readPid(final File pidFile) {
    assert pidFile != null : "The file from which to read the process ID (pid) cannot be null!";
    if (pidFile.isFile()) {
      BufferedReader fileReader = null;
      try {
        fileReader = new BufferedReader(new FileReader(pidFile));
        return Integer.parseInt(fileReader.readLine());
      } catch (IOException | NumberFormatException ignore) {
      } finally {
        IOUtils.close(fileReader);
      }
    }
    return INVALID_PID;
  }
Encapsulates methods used by StartServerCommand and StartLocatorCommand and their associated
tests.

@see StartLocatorCommand
@see StartServerCommand
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/StartMemberUtils.java