public File getDiskDirFor(VM vm) {
    return new File(
        vm.invoke(
            () -> System.getProperty(SystemProperty.DEFAULT_PREFIX + DEFAULT_DISK_DIRS_PROPERTY)));
  }
JUnit Rule that overrides the default DiskDirs directory in all DUnit VMs (except for the hidden
Locator VM). Internally, SerializableTemporaryFolder and SerializableTestName are used by this
rule to define the directory locations and names.

<p>
Each JVM will have its own default DiskDir directory in which that JVM will create the default
disk store (if one is created). Each DiskDir name is defined as:

<pre>
"VM" + VM.getCurrentVMNum() + "-" + testClass + "_" + testName.getMethodName() + "-diskDirs"
</pre>

Using DistributedDiskDirRule will produce unique DiskDirs for each DUnit VM including the main
controller VM (-1) but not the locator VM (-2):

<pre>
/var/folders/28/m__9dv1906n60kmz7t71wm680000gn/T/junit7783603075891789189/
    VM-1-DistributedDiskDirRuleDistributedTest_setsDefaultDiskDirsPropertyInEveryVm-diskDirs
    VM0-DistributedDiskDirRuleDistributedTest_setsDefaultDiskDirsPropertyInEveryVm-diskDirs
    VM1-DistributedDiskDirRuleDistributedTest_setsDefaultDiskDirsPropertyInEveryVm-diskDirs
    VM2-DistributedDiskDirRuleDistributedTest_setsDefaultDiskDirsPropertyInEveryVm-diskDirs
    VM3-DistributedDiskDirRuleDistributedTest_setsDefaultDiskDirsPropertyInEveryVm-diskDirs
</pre>

<p>
Example of test using DistributedDiskDirRule:

<pre>
public class DistributedDiskDirRuleDistributedTest implements Serializable {

  {@literal @}Rule
  public DistributedRule distributedRule = new DistributedRule();

  {@literal @}Rule
  public DistributedDiskDirRule distributedDiskDirRule = new DistributedDiskDirRule();
</pre>
geode-dunit/src/main/java/org/apache/geode/test/dunit/rules/DistributedDiskDirRule.java