geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/GfshRule.java
@Override
  protected void after() {
    gfshExecutions.stream().map(GfshExecution::getWorkingDir).collect(Collectors.toList())
        .forEach(this::stopMembersQuietly);

    gfshExecutions.stream().map(GfshExecution::getProcess).map(Process::destroyForcibly)
        .forEach((Process process) -> {
          try {
            // Process.destroyForcibly() may not terminate immediately
            process.waitFor(1, TimeUnit.MINUTES);
          } catch (InterruptedException ignore) {
            // We ignore this exception so that we still attempt the rest of the cleanup.
          }
        });

    temporaryFolder.delete();
  }
/**
   * Attempts to stop any started servers/locators via pid file and tears down any remaining gfsh
   * JVMs.
   */
Attempts to stop any started servers/locators via pid file and tears down any remaining gfsh
JVMs.
Attempts to stop any started servers / locators via pid file and tears down any remaining gfsh JVMs .
@Override
  protected void after() {
    gfshExecutions.stream().map(GfshExecution::getWorkingDir).collect(Collectors.toList())
        .forEach(this::stopMembersQuietly);
    gfshExecutions.stream().map(GfshExecution::getProcess).map(Process::destroyForcibly)
        .forEach((Process process) -> {
          try {
            process.waitFor(1, TimeUnit.MINUTES);
          } catch (InterruptedException ignore) {
          }
        });
    temporaryFolder.delete();
  }
@ Override protected void after ( ) { gfshExecutions . stream ( ) . map ( GfshExecution :: getWorkingDir ) . collect ( Collectors . toList ( ) ) . forEach ( this :: stopMembersQuietly ) ; gfshExecutions . stream ( ) . map ( GfshExecution :: getProcess ) . map ( Process :: destroyForcibly ) . forEach ( ( Process process ) -> { try { process . waitFor ( 1 , TimeUnit . MINUTES ) ; } catch ( InterruptedException ignore ) { } } ) ; temporaryFolder . delete ( ) ; }
Attempts to stop any started servers/locators via pid file and tears down any remaining gfsh
 JVMs.
Attempts to stop any started servers / locators via pid file and tears down any remaining gfsh JVMs .
// Process.destroyForcibly() may not terminate immediately // We ignore this exception so that we still attempt the rest of the cleanup.