Package com.morpheusdata.core.providers
Interface ProvisionProvider.BlockDeviceNameFacet
- Enclosing interface:
- ProvisionProvider
public static interface ProvisionProvider.BlockDeviceNameFacet
Provides a method to allow a provision provider to override the array list of disk device names.
By default, the vd* names are used such as ['vda','vdb'] etc. But some clouds use different block
device names and they need overridden
- Since:
- 0.15.4
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getDiskDisplayName
(int index) Returns the display name of the storage volume based on its position assuming a default platform of linuxdefault String
getDiskDisplayName
(int index, String platform) Returns the display name of the storage volume based on its position and the OS Platformdefault String
getDiskName
(int index) Returns the device name of the storage volume based on its position assuming a default platform of linuxdefault String
getDiskName
(int index, String platform) Returns the device name of the storage volume based on its position and OS PlatformString[]
Returns a String array of block device names i.e.
-
Method Details
-
getDiskNameList
String[] getDiskNameList()Returns a String array of block device names i.e. (['vda','vdb','vdc']) in the order of the disk index.- Returns:
- the String array
-
getDiskName
Returns the device name of the storage volume based on its position assuming a default platform of linux- Parameters:
index
- the position (starting at 0 for root disk)- Returns:
- the device name
-
getDiskName
Returns the device name of the storage volume based on its position and OS Platform- Parameters:
index
- the position (starting at 0 for root disk)platform
- the platform string (i.e. windows,linux)- Returns:
- the device name
-
getDiskDisplayName
Returns the display name of the storage volume based on its position assuming a default platform of linux- Parameters:
index
- the position (starting at 0 for root disk)- Returns:
- the friendly device name
-
getDiskDisplayName
Returns the display name of the storage volume based on its position and the OS Platform- Parameters:
index
- the position (starting at 0 for root disk)platform
- the platform string (i.e. windows,linux)- Returns:
- the friendly device name
-