public static String getVMName(final String version, final int pid) {
    if (pid == -2) {
      return "locator";
    }
    if (pid < 0 || isCurrentVersion(version)) {
      return "vm" + pid;
    } else {
      return "vm" + pid + "_v" + version;
    }
  }
Returns a VM running the specified Geode version in this DistributedTest.

@param geodeVersion String specifying the Geode version
@param whichVM A zero-based identifier of the VM
@return a VM running the specified Geode version in this DistributedTest
geode-dunit/src/main/java/org/apache/geode/test/dunit/VM.java