Package org.ovirt.engine.sdk4.types
Enum VmType
- java.lang.Object
-
- java.lang.Enum<VmType>
-
- org.ovirt.engine.sdk4.types.VmType
-
- All Implemented Interfaces:
Serializable
,Comparable<VmType>
public enum VmType extends Enum<VmType>
Type representing what the virtual machine is optimized for.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESKTOP
The virtual machine is intended to be used as a desktop.HIGH_PERFORMANCE
The virtual machine is intended to be used as a high performance virtual machine.SERVER
The virtual machine is intended to be used as a server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmType
fromValue(String value)
String
value()
static VmType
valueOf(String name)
Returns the enum constant of this type with the specified name.static VmType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DESKTOP
public static final VmType DESKTOP
The virtual machine is intended to be used as a desktop. Currently, its implication is that a sound device will automatically be added to the virtual machine.
-
HIGH_PERFORMANCE
public static final VmType HIGH_PERFORMANCE
The virtual machine is intended to be used as a high performance virtual machine. Currently, its implication is that the virtual machine configuration will automatically be set for running with the highest possible performance, and with performance metrics as close to bare metal as possible. Some of the recommended configuration settings for the highest possible performance cannot be set automatically; manually setting them before running the virtual machine is recommended. The following configuration changes are set automatically: - Enable headless mode. - Enable serial console. - Enable pass-through host CPU. - Enable I/O threads. - Enable I/O threads pinning and set the pinning topology. - Enable the paravirtualized random number generator PCI (virtio-rng) device. - Disable all USB devices. - Disable the soundcard device. - Disable the smartcard device. - Disable the memory balloon device. - Disable the watchdog device. - Disable migration. - Disable high availability. The following recommended configuration changes have to be set manually by the user: - Enable CPU pinning topology. - Enable non-uniform memory access (NUMA) pinning topology. - Enable and set huge pages configuration. - Disable kernel same-page merging (KSM).
-
SERVER
public static final VmType SERVER
The virtual machine is intended to be used as a server. Currently, its implication is that a sound device will not automatically be added to the virtual machine.
-
-
Method Detail
-
values
public static VmType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VmType c : VmType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VmType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public String value()
-
-