public enum MediumType extends java.lang.Enum<MediumType>
IMedium
, this defines how the medium is
attached to a virtual machine (seeIMediumAttachment
) and what happens
when a snapshot (seeISnapshot
) is taken of a virtual machine which has
the medium attached. At the moment DVD and floppy media are always of type "writethrough".
Interface ID: {FE663FB5-C244-4E1B-9D81-C628B417DD04}
Enum Constant and Description |
---|
Immutable
Immutable medium (attached indirectly, changes are wiped out
the next time the virtual machine is started).
|
MultiAttach
A medium which is indirectly attached, so that one base medium can
be used for several VMs which have their own differencing medium to
store their modifications.
|
Normal
Normal medium (attached directly or indirectly, preserved
when taking snapshots).
|
Readonly
A readonly medium, which can of course be used by several machines.
|
Shareable
Allow using this medium concurrently by several machines.
|
Writethrough
Write through medium (attached directly, ignored when
taking snapshots).
|
Modifier and Type | Method and Description |
---|---|
static MediumType |
fromValue(long v) |
static MediumType |
fromValue(java.lang.String v) |
int |
value() |
static MediumType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MediumType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MediumType Normal
public static final MediumType Immutable
public static final MediumType Writethrough
public static final MediumType Shareable
public static final MediumType Readonly
public static final MediumType MultiAttach
public static MediumType[] values()
for (MediumType c : MediumType.values()) System.out.println(c);
public static MediumType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static MediumType fromValue(long v)
public static MediumType fromValue(java.lang.String v)