All Implemented Interfaces:
Serializable, Comparable<DomUDisk>

public class DomUDisk extends Object implements Comparable<DomUDisk>, Serializable
A single virtual disk device and its requirements.
AO Industries, Inc.
See Also:
  • Field Details


      public static final int EXTENTS_SIZE
      This is the standard size of the extents in bytes.
      See Also:
  • Method Details

    • getClusterName

      public String getClusterName()
    • getDomUHostname

      public String getDomUHostname()
    • getDevice

      public String getDevice()
      Gets the per-DomU unique device ID (usually /dev/xvd[a-z]).
    • getMinimumDiskSpeed

      public int getMinimumDiskSpeed()
      Gets the minimum disk speed or -1 if doesn't matter.
    • getExtents

      public long getExtents()
      Gets the number of LVM extents this virtual disk requires.
    • getWeight

      public short getWeight()
      Gets the allocation weight in the range of 1-1024.
    • toString

      public String toString()
      toString in class Object
    • compareTo

      public int compareTo(DomUDisk other)
      Sorted ascending. By:
      1. clusterName
      2. domUHostname
      3. device
      Specified by:
      compareTo in interface Comparable<DomUDisk>