Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- org.openjdk.jmc.flightrecorder.rules.Severity
-
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
public enum Severity extends Enum<Severity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INFO
Results with this severity score should be presented as potential problems.NA
Results with this severity score are not applicable to the recording, but it should be possible to view them so the user can see which results have not been possible to evaluate.OK
Results with this severity score should be presented as OK.WARNING
Results with this severity score should be presented as warnings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Severity
get(double score)
double
getLimit()
String
getLocalizedName()
static Severity
valueOf(String name)
Returns the enum constant of this type with the specified name.static Severity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NA
public static final Severity NA
Results with this severity score are not applicable to the recording, but it should be possible to view them so the user can see which results have not been possible to evaluate.
-
OK
public static final Severity OK
Results with this severity score should be presented as OK.
-
INFO
public static final Severity INFO
Results with this severity score should be presented as potential problems.
-
WARNING
public static final Severity WARNING
Results with this severity score should be presented as warnings.
-
-
Method Detail
-
values
public static Severity[] 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 (Severity c : Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Severity 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
-
getLocalizedName
public String getLocalizedName()
-
getLimit
public double getLimit()
-
get
public static Severity get(double score)
-
-