Package org.ovirt.engine.sdk4.types
Enum UsbType
- java.lang.Object
-
- java.lang.Enum<UsbType>
-
- org.ovirt.engine.sdk4.types.UsbType
-
- All Implemented Interfaces:
Serializable
,Comparable<UsbType>
public enum UsbType extends Enum<UsbType>
Type of USB device redirection.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsbType
fromValue(String value)
String
value()
static UsbType
valueOf(String name)
Returns the enum constant of this type with the specified name.static UsbType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEGACY
public static final UsbType LEGACY
Legacy USB redirection. This USB type has been deprecated since version 3.6 of the engine, and has been completely removed in version 4.1. It is preserved only to avoid syntax errors in existing scripts. If it is used it will be automatically replaced by `native`.
-
NATIVE
public static final UsbType NATIVE
Native USB redirection. Native USB redirection allows KVM/SPICE USB redirection for Linux and Windows virtual machines. Virtual (guest) machines require no guest-installed agents or drivers for native USB. On Linux clients, all packages required for USB redirection are provided by the `virt-viewer` package. On Windows clients, you must also install the `usbdk` package.
-
-
Method Detail
-
values
public static UsbType[] 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 (UsbType c : UsbType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UsbType 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()
-
-