java.lang.Object
com.aoindustries.aoserv.cluster.DomU
- All Implemented Interfaces:
Serializable
,Comparable<DomU>
Represents one virtual server and its required resources.
- Author:
- AO Industries, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Sorted ascending.getDomUDisk
(String device) Gets the disk with the provided device name ornull
if not found.Gets the unmodifiable set of virtual disks.Gets the cluster-wide unique name.Gets the minimum processor architecture.int
Gets the minimum processor speed in MHz or-1
for no special requirements.Gets the minimum processor type for the VM ornull
if there are no special requirements.int
Gets the amount of RAM needed in primary mode (in MB).short
Gets the number of processor cores to allocate.short
Gets the CPU weight (on a scale of 1-1024).boolean
Gets if this DomU requires full hardware virtualization support.int
Gets the amount of RAM needed in secondary mode (in MB) or -1 for no secondary mode required.boolean
Gets if this VM is manually locked to this Dom0.boolean
Gets if this VM is manually locked to this Dom0.toString()
-
Method Details
-
getClusterName
-
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
Gets the minimum processor type for the VM ornull
if there are no special requirements. -
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
Gets the unmodifiable set of virtual disks. -
getDomUDisk
Gets the disk with the provided device name ornull
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
-
compareTo
Sorted ascending. By:- clusterName
- hostname
- Specified by:
compareTo
in interfaceComparable<DomU>
-