Package org.ovirt.engine.sdk4.types
Enum WatchdogAction
- java.lang.Object
-
- java.lang.Enum<WatchdogAction>
-
- org.ovirt.engine.sdk4.types.WatchdogAction
-
- All Implemented Interfaces:
Serializable
,Comparable<WatchdogAction>
public enum WatchdogAction extends Enum<WatchdogAction>
This type describes available watchdog actions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DUMP
Virtual machine process will get core dumped to the default path on the host.NONE
No action will be performed when watchdog action is triggered.PAUSE
Virtual machine will be paused when watchdog action is triggered.POWEROFF
Virtual machine will be powered off when watchdog action is triggered.RESET
Virtual machine will be rebooted when watchdog action is triggered.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WatchdogAction
fromValue(String value)
String
value()
static WatchdogAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static WatchdogAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUMP
public static final WatchdogAction DUMP
Virtual machine process will get core dumped to the default path on the host.
-
NONE
public static final WatchdogAction NONE
No action will be performed when watchdog action is triggered. However log message will still be generated.
-
PAUSE
public static final WatchdogAction PAUSE
Virtual machine will be paused when watchdog action is triggered.
-
POWEROFF
public static final WatchdogAction POWEROFF
Virtual machine will be powered off when watchdog action is triggered.
-
RESET
public static final WatchdogAction RESET
Virtual machine will be rebooted when watchdog action is triggered.
-
-
Method Detail
-
values
public static WatchdogAction[] 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 (WatchdogAction c : WatchdogAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WatchdogAction 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 WatchdogAction fromValue(String value)
-
-