Enum HealthCheckResultStatus
- java.lang.Object
-
- java.lang.Enum<HealthCheckResultStatus>
-
- fish.payara.notification.healthcheck.HealthCheckResultStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<HealthCheckResultStatus>
public enum HealthCheckResultStatus extends Enum<HealthCheckResultStatus>
Enum for the status level of a health check- Since:
- 4.1.1.161
- Author:
- steve
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK_ERROR
CRITICAL
FINE
GOOD
WARNING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLevel()
Gets the status level; 1=CHECK_ERROR, 2=CRITICAL, 3=WARNING, 4=GOOD, 5=FINEstatic HealthCheckResultStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static HealthCheckResultStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHECK_ERROR
public static final HealthCheckResultStatus CHECK_ERROR
-
CRITICAL
public static final HealthCheckResultStatus CRITICAL
-
WARNING
public static final HealthCheckResultStatus WARNING
-
GOOD
public static final HealthCheckResultStatus GOOD
-
FINE
public static final HealthCheckResultStatus FINE
-
-
Method Detail
-
values
public static HealthCheckResultStatus[] 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 (HealthCheckResultStatus c : HealthCheckResultStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HealthCheckResultStatus 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
-
getLevel
public int getLevel()
Gets the status level; 1=CHECK_ERROR, 2=CRITICAL, 3=WARNING, 4=GOOD, 5=FINE- Returns:
- an integer from 1 to 5 inclusive
-
-