All Implemented Interfaces:
Serializable, Comparable<DomU>

public class DomU extends Object implements Comparable<DomU>, Serializable
Represents one virtual server and its required resources.
AO Industries, Inc.
See Also:
  • Method Details

    • getClusterName

      public String getClusterName()
    • getHostname

      public String getHostname()
      Gets the cluster-wide unique name.
    • getPrimaryRam

      public int getPrimaryRam()
      Gets the amount of RAM needed in primary mode (in MB).
    • getSecondaryRam

      public int getSecondaryRam()
      Gets the amount of RAM needed in secondary mode (in MB) or -1 for no secondary mode required.
    • getMinimumProcessorType

      public ProcessorType getMinimumProcessorType()
      Gets the minimum processor type for the VM or null if there are no special requirements.
    • getMinimumProcessorArchitecture

      public ProcessorArchitecture getMinimumProcessorArchitecture()
      Gets the minimum processor architecture.
    • getMinimumProcessorSpeed

      public int getMinimumProcessorSpeed()
      Gets the minimum processor speed in MHz or -1 for no special requirements.
    • getProcessorCores

      public short getProcessorCores()
      Gets the number of processor cores to allocate.
    • getProcessorWeight

      public short getProcessorWeight()
      Gets the CPU weight (on a scale of 1-1024).
    • getRequiresHvm

      public boolean getRequiresHvm()
      Gets if this DomU requires full hardware virtualization support.
    • getDomUDisks

      public Map<String,DomUDisk> getDomUDisks()
      Gets the unmodifiable set of virtual disks.
    • getDomUDisk

      public DomUDisk getDomUDisk(String device)
      Gets the disk with the provided device name or null if not found.
    • isPrimaryDom0Locked

      public boolean isPrimaryDom0Locked()
      Gets if this VM is manually locked to this Dom0.
    • isSecondaryDom0Locked

      public boolean isSecondaryDom0Locked()
      Gets if this VM is manually locked to this Dom0.
    • toString

      public String toString()
      toString in class Object
    • compareTo

      public int compareTo(DomU other)
      Sorted ascending. By:
      1. clusterName
      2. hostname
      Specified by:
      compareTo in interface Comparable<DomU>