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 TypeMethodDescriptionintSorted ascending.getDomUDisk(String device) Gets the disk with the provided device name ornullif not found.Gets the unmodifiable set of virtual disks.Gets the cluster-wide unique name.Gets the minimum processor architecture.intGets the minimum processor speed in MHz or-1for no special requirements.Gets the minimum processor type for the VM ornullif there are no special requirements.intGets the amount of RAM needed in primary mode (in MB).shortGets the number of processor cores to allocate.shortGets the CPU weight (on a scale of 1-1024).booleanGets if this DomU requires full hardware virtualization support.intGets the amount of RAM needed in secondary mode (in MB) or -1 for no secondary mode required.booleanGets if this VM is manually locked to this Dom0.booleanGets 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 ornullif there are no special requirements. -
getMinimumProcessorArchitecture
Gets the minimum processor architecture. -
getMinimumProcessorSpeed
public int getMinimumProcessorSpeed()Gets the minimum processor speed in MHz or-1for 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 ornullif 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:
compareToin interfaceComparable<DomU>
-
