Enum QcowVersion

  • All Implemented Interfaces:
    Serializable, Comparable<QcowVersion>

    public enum QcowVersion
    extends Enum<QcowVersion>
    The QCOW version specifies to the qemu which qemu version the volume supports. This field can be updated using the update API and will be reported only for QCOW volumes, it is determined by the storage domain's version which the disk is created on. Storage domains with version lower than V4 support QCOW2 version 2 volumes, while V4 storage domains also support QCOW2 version 3. For more information about features of the different QCOW versions, see http://wiki.qemu.org/Features/Qcow3[here].
    • Enum Constant Detail

      • QCOW2_V2

        public static final QcowVersion QCOW2_V2
        The _Copy On Write_ default compatibility version It means that every QEMU can use it.
      • QCOW2_V3

        public static final QcowVersion QCOW2_V3
        The _Copy On Write_ compatibility version which was introduced in QEMU 1.1 It means that the new format is in use.
    • Method Detail

      • values

        public static QcowVersion[] 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 (QcowVersion c : QcowVersion.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static QcowVersion 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 name
        NullPointerException - if the argument is null
      • value

        public String value()