Package org.ovirt.engine.sdk4.types
Enum DiskStatus
- java.lang.Object
-
- java.lang.Enum<DiskStatus>
-
- org.ovirt.engine.sdk4.types.DiskStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<DiskStatus>
public enum DiskStatus extends Enum<DiskStatus>
Current status representation for disk.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ILLEGAL
Disk cannot be accessed by the virtual machine, and the user needs to take action to resolve the issue.LOCKED
The disk is being used by the system, therefore it cannot be accessed by virtual machines at this point.OK
The disk status is normal and can be accessed by the virtual machine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DiskStatus
fromValue(String value)
String
value()
static DiskStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static DiskStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ILLEGAL
public static final DiskStatus ILLEGAL
Disk cannot be accessed by the virtual machine, and the user needs to take action to resolve the issue.
-
LOCKED
public static final DiskStatus LOCKED
The disk is being used by the system, therefore it cannot be accessed by virtual machines at this point. This is usually a temporary status, until the disk is freed.
-
OK
public static final DiskStatus OK
The disk status is normal and can be accessed by the virtual machine.
-
-
Method Detail
-
values
public static DiskStatus[] 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 (DiskStatus c : DiskStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DiskStatus 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()
-
fromValue
public static DiskStatus fromValue(String value)
-
-