Enum DiskFormat
- java.lang.Object
-
- java.lang.Enum<DiskFormat>
-
- org.jclouds.openstack.glance.v1_0.domain.DiskFormat
-
- All Implemented Interfaces:
Serializable,Comparable<DiskFormat>
public enum DiskFormat extends Enum<DiskFormat>
The disk format of a virtual machine image is the format of the underlying disk image. Virtual appliance vendors have different formats for laying out the information contained in a virtual machine disk image.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AKIThis indicates what is stored in Glance is an Amazon kernel imageAMIThis indicates what is stored in Glance is an Amazon machine imageARIThis indicates what is stored in Glance is an Amazon ramdisk imageISOAn archive format for the data contents of an optical disc (e.g.QCOW2A disk format supported by the QEMU emulator that can expand dynamically and supports Copy on WriteRAWThis is an unstructured disk image formatUNRECOGNIZEDType unknown to jcloudsVDIA disk format supported by VirtualBox virtual machine monitor and the QEMU emulatorVHDThis is the VHD disk format, a common disk format used by virtual machine monitors from VMWare, Xen, Microsoft, VirtualBox, and othersVMDKAnother common disk format supported by many common virtual machine monitors
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiskFormatfromValue(String diskFormat)StringtoString()Stringvalue()static DiskFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static DiskFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RAW
public static final DiskFormat RAW
This is an unstructured disk image format
-
VHD
public static final DiskFormat VHD
This is the VHD disk format, a common disk format used by virtual machine monitors from VMWare, Xen, Microsoft, VirtualBox, and others
-
VMDK
public static final DiskFormat VMDK
Another common disk format supported by many common virtual machine monitors
-
VDI
public static final DiskFormat VDI
A disk format supported by VirtualBox virtual machine monitor and the QEMU emulator
-
ISO
public static final DiskFormat ISO
An archive format for the data contents of an optical disc (e.g. CDROM).
-
QCOW2
public static final DiskFormat QCOW2
A disk format supported by the QEMU emulator that can expand dynamically and supports Copy on Write
-
AKI
public static final DiskFormat AKI
This indicates what is stored in Glance is an Amazon kernel image
-
ARI
public static final DiskFormat ARI
This indicates what is stored in Glance is an Amazon ramdisk image
-
AMI
public static final DiskFormat AMI
This indicates what is stored in Glance is an Amazon machine image
-
UNRECOGNIZED
public static final DiskFormat UNRECOGNIZED
Type unknown to jclouds
-
-
Method Detail
-
values
public static DiskFormat[] 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 (DiskFormat c : DiskFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiskFormat 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()
-
toString
public String toString()
- Overrides:
toStringin classEnum<DiskFormat>
-
fromValue
public static DiskFormat fromValue(String diskFormat)
-
-