/** * @deprecated as of prPersistSprint2 */ @Deprecated public void setDiskDirs(File[] diskDirs) { // not throw exception for mixed API, since it's internal checkIfDirectoriesExist(diskDirs); this.diskDirs = diskDirs; this.diskSizes = new int[diskDirs.length]; for (int i = 0; i < diskDirs.length; i++) { this.diskSizes[i] = DiskStoreFactory.DEFAULT_DISK_DIR_SIZE; } setHasDiskDirs(true); }
/** * @deprecated as of prPersistSprint2 */ @Deprecated public void setDiskDirsAndSize(File[] diskDirs, int[] sizes) { // not throw exception for mixed API, since it's internal checkIfDirectoriesExist(diskDirs); this.diskDirs = diskDirs; if (sizes.length != this.diskDirs.length) { throw new IllegalArgumentException( String.format( "Number of diskSizes is %s which is not equal to number of disk Dirs which is %s", new Object[] {Integer.valueOf(sizes.length), Integer.valueOf(diskDirs.length)})); } verifyNonNegativeDirSize(sizes); this.diskSizes = sizes; this.setHasDiskDirs(true); }