Enum Severity
- java.lang.Object
-
- java.lang.Enum<Severity>
-
- org.forgerock.audit.handlers.syslog.Severity
-
- All Implemented Interfaces:
Serializable
,Comparable<Severity>
public enum Severity extends Enum<Severity>
Defines the standard Syslog message severities.- See Also:
- RFC-5424 section 6.2.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALERT
Action must be taken immediately.CRITICAL
Critical conditions.DEBUG
Debug-level messages.EMERGENCY
System is unusable.ERROR
Error conditions.INFORMATIONAL
Informational messages.NOTICE
Normal but significant condition.WARNING
Warning conditions.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Get the syslog code for the severity.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
-
EMERGENCY
public static final Severity EMERGENCY
System is unusable.
-
ALERT
public static final Severity ALERT
Action must be taken immediately.
-
CRITICAL
public static final Severity CRITICAL
Critical conditions.
-
ERROR
public static final Severity ERROR
Error conditions.
-
WARNING
public static final Severity WARNING
Warning conditions.
-
NOTICE
public static final Severity NOTICE
Normal but significant condition.
-
INFORMATIONAL
public static final Severity INFORMATIONAL
Informational messages.
-
DEBUG
public static final Severity DEBUG
Debug-level messages.
-
-
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
-
getCode
public int getCode()
Get the syslog code for the severity.- Returns:
- The code.
-
-