public class MostUsableSpaceStrategy extends DiskAllocationStrategy
DiskAllocationStrategy implementation that allocates the disk with the most usable space.| Constructor and Description |
|---|
MostUsableSpaceStrategy(String diskPoolId,
List<DiskPool> diskPools) |
| Modifier and Type | Method and Description |
|---|---|
Disk |
allocateDisk(List<Disk> disks)
Allocates a disk from the given list.
|
allocateDisk, getDiskPoolId@Nonnull public Disk allocateDisk(List<Disk> disks) throws IOException
DiskAllocationStrategyDisk entry.allocateDisk in class DiskAllocationStrategydisks - the disks from which to allocate a disk. The list has at least one element.IOException - if any mandatory field is missing from the Disk entryCopyright © 2016. All rights reserved.