@Deprecated
  public void setDiskDirsAndSizes(File[] diskDirs, int[] diskSizes) {
    if (regionAttributes.getDiskStoreName() != null) {
      throw new IllegalStateException(
          String.format("Deprecated API %s cannot be used with DiskStore %s",
              "setDiskDirsAndSizes", regionAttributes.getDiskStoreName()));
    }
    DiskStoreFactoryImpl.checkIfDirectoriesExist(diskDirs);
    regionAttributes.diskDirs = diskDirs;
    if (diskSizes.length != regionAttributes.diskDirs.length) {
      throw new IllegalArgumentException(
          String.format(
              "Number of diskSizes is %s which is not equal to number of disk Dirs which is %s",
              diskSizes.length,
              diskDirs.length));
    }
    verifyNonNegativeDirSize(diskSizes);
    regionAttributes.diskSizes = diskSizes;
    if (!regionAttributes.hasDiskWriteAttributes()
        && !regionAttributes.hasDiskSynchronous()) {
      // switch to the old default
      regionAttributes.diskSynchronous = false;
      regionAttributes.diskWriteAttributes = DiskWriteAttributesImpl.getDefaultAsyncInstance();
    }
    regionAttributes.setHasDiskDirs(true);
  }
Sets the directories to which the region's data is written and also set their sizes in
megabytes

@param diskDirs the directories to which the region's data is written
@param diskSizes the size in megabytes for each directory
@throws IllegalArgumentException if a dir does not exist or the length of the size array does
        not match to the length of the dir array or the given size is not a valid positive
        number

@since GemFire 5.1
@deprecated as of 6.5 use {@link DiskStoreFactory#setDiskDirsAndSizes} instead
geode-core/src/main/java/org/apache/geode/cache/AttributesFactory.java