Package org.ovirt.engine.sdk4.types
Enum LogMaxMemoryUsedThresholdType
- java.lang.Object
-
- java.lang.Enum<LogMaxMemoryUsedThresholdType>
-
- org.ovirt.engine.sdk4.types.LogMaxMemoryUsedThresholdType
-
- All Implemented Interfaces:
Serializable
,Comparable<LogMaxMemoryUsedThresholdType>
public enum LogMaxMemoryUsedThresholdType extends Enum<LogMaxMemoryUsedThresholdType>
Describes all maximum memory threshold types supported by the system.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABSOLUTE_VALUE_IN_MB
Absolute value threshold type.PERCENTAGE
Percentage threshold type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogMaxMemoryUsedThresholdType
fromValue(String value)
String
value()
static LogMaxMemoryUsedThresholdType
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogMaxMemoryUsedThresholdType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ABSOLUTE_VALUE_IN_MB
public static final LogMaxMemoryUsedThresholdType ABSOLUTE_VALUE_IN_MB
Absolute value threshold type. When an absolute value is specified, an audit log event is logged if the free memory in MB falls below the value specified in `LogMaxMemoryUsedThreshold`.
-
PERCENTAGE
public static final LogMaxMemoryUsedThresholdType PERCENTAGE
Percentage threshold type. When a percentage is specified, an audit log event is logged if the memory used is above the value specified in `LogMaxMemoryUsedThreshold`.
-
-
Method Detail
-
values
public static LogMaxMemoryUsedThresholdType[] 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 (LogMaxMemoryUsedThresholdType c : LogMaxMemoryUsedThresholdType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogMaxMemoryUsedThresholdType 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 LogMaxMemoryUsedThresholdType fromValue(String value)
-
-