public abstract class DiskAllocationStrategy extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
DiskAllocationStrategy(String diskPoolId,
List<DiskPool> diskPools) |
| Modifier and Type | Method and Description |
|---|---|
Disk |
allocateDisk()
Allocates a disk from the given disk pool.
|
protected abstract Disk |
allocateDisk(List<Disk> disks)
Allocates a disk from the given list.
|
protected String |
getDiskPoolId() |
@Nonnull public Disk allocateDisk() throws IOException
IOException - if the disk pool doesn't have defined any Disk entriesfindDiskPool(),
()@Nonnull protected abstract Disk allocateDisk(List<Disk> disks) throws IOException
Disk entry.disks - 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 entryprotected String getDiskPoolId()
Copyright © 2016. All rights reserved.