private String stopCommand(Path directory) {
    return String.join(" ", "stop", processType.name().toLowerCase(), "--dir=" + directory);
  }
Provides methods for stopping and awaiting the termination of server and locator processes.
geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshStopper.java