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 Type
    Method
    Description
    default String
    getDiskDisplayName(int index)
    Returns the display name of the storage volume based on its position assuming a default platform of linux
    default String
    getDiskDisplayName(int index, String platform)
    Returns the display name of the storage volume based on its position and the OS Platform
    default String
    getDiskName(int index)
    Returns the device name of the storage volume based on its position assuming a default platform of linux
    default String
    getDiskName(int index, String platform)
    Returns the device name of the storage volume based on its position and OS Platform
    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

      default String getDiskName(int index)
      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

      default String getDiskName(int index, String platform)
      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

      default String getDiskDisplayName(int index)
      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

      default String getDiskDisplayName(int index, String platform)
      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