Package org.ovirt.engine.sdk4.types
Enum VmStorageErrorResumeBehaviour
- java.lang.Object
-
- java.lang.Enum<VmStorageErrorResumeBehaviour>
-
- org.ovirt.engine.sdk4.types.VmStorageErrorResumeBehaviour
-
- All Implemented Interfaces:
Serializable
,Comparable<VmStorageErrorResumeBehaviour>
public enum VmStorageErrorResumeBehaviour extends Enum<VmStorageErrorResumeBehaviour>
If the storage, on which this virtual machine has some disks gets unresponsive, the virtual machine gets paused. This are the possible options, what should happen with the virtual machine in the moment the storage gets available again.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_RESUME
The virtual machine gets resumed automatically in the moment the storage is available again.KILL
The virtual machine will be killed after a timeout (configurable on the hypervisor).LEAVE_PAUSED
Do nothing with the virtual machine.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VmStorageErrorResumeBehaviour
fromValue(String value)
String
value()
static VmStorageErrorResumeBehaviour
valueOf(String name)
Returns the enum constant of this type with the specified name.static VmStorageErrorResumeBehaviour[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO_RESUME
public static final VmStorageErrorResumeBehaviour AUTO_RESUME
The virtual machine gets resumed automatically in the moment the storage is available again. This is the only behavior available before 4.2.
-
KILL
public static final VmStorageErrorResumeBehaviour KILL
The virtual machine will be killed after a timeout (configurable on the hypervisor). This is the only option supported for highly available virtual machines with leases. The reason is that the highly available virtual machine is restarted using the infrastructure and any kind of resume risks split brains.
-
LEAVE_PAUSED
public static final VmStorageErrorResumeBehaviour LEAVE_PAUSED
Do nothing with the virtual machine. Useful if there is a custom failover implemented and the user does not want the virtual machine to get resumed.
-
-
Method Detail
-
values
public static VmStorageErrorResumeBehaviour[] 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 (VmStorageErrorResumeBehaviour c : VmStorageErrorResumeBehaviour.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VmStorageErrorResumeBehaviour 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 VmStorageErrorResumeBehaviour fromValue(String value)
-
-