Package org.onosproject.alarm
Enum Alarm.SeverityLevel
- java.lang.Object
-
- java.lang.Enum<Alarm.SeverityLevel>
-
- org.onosproject.alarm.Alarm.SeverityLevel
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Alarm.SeverityLevel>
- Enclosing interface:
- Alarm
public static enum Alarm.SeverityLevel extends java.lang.Enum<Alarm.SeverityLevel>
Represents the severity level on an alarm, as per ITU-T X.733 specifications.The precedence is as follows for : Critical > Major > Minor > Warning.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLEARED
From X.733: This indicates the clearing of one or more previously reported alarms.CRITICAL
From X.733: This indicates that a service affecting condition has occurred and an immediate corrective action is required.INDETERMINATE
From X.733: This indicates that the severity level cannot be determined.MAJOR
X.733 definition: This indicates that a service affecting condition has developed and an urgent corrective action is required.MINOR
From X.733: This indicates the existence of a non-service affecting fault condition and that corrective action should be taken in order to prevent a more serious (for example, service affecting) fault.WARNING
From X.733: This indicates the detection of a potential or impending service affecting fault, before any significant effects have been felt.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Alarm.SeverityLevel
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Alarm.SeverityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLEARED
public static final Alarm.SeverityLevel CLEARED
From X.733: This indicates the clearing of one or more previously reported alarms. This alarm clears all alarms for this managed object that have the same Alarm type, Probable cause and Specific problems (if given). Multiple associated notifications may be cleared by using the Correlated notifications parameter (defined below). This Recommendation | International Standard does not require that the clearing of previously reported alarms be reported. Therefore, a managing system cannot assume that the absence of an alarm with the Cleared severity level means that the condition that caused the generation of previous alarms is still present. Managed object definers shall state if, and under which conditions, the Cleared severity level is used.
-
INDETERMINATE
public static final Alarm.SeverityLevel INDETERMINATE
From X.733: This indicates that the severity level cannot be determined.
-
CRITICAL
public static final Alarm.SeverityLevel CRITICAL
From X.733: This indicates that a service affecting condition has occurred and an immediate corrective action is required. Such a severity can be reported, for example, when a managed object becomes totally out of service and its capability must be restored.
-
MAJOR
public static final Alarm.SeverityLevel MAJOR
X.733 definition: This indicates that a service affecting condition has developed and an urgent corrective action is required. Such a severity can be reported, for example, when there is a severe degradation in the capability of the managed object and its full capability must be restored.
-
MINOR
public static final Alarm.SeverityLevel MINOR
From X.733: This indicates the existence of a non-service affecting fault condition and that corrective action should be taken in order to prevent a more serious (for example, service affecting) fault. Such a severity can be reported, for example, when the detected alarm condition is not currently degrading the capacity of the managed object.
-
WARNING
public static final Alarm.SeverityLevel WARNING
From X.733: This indicates the detection of a potential or impending service affecting fault, before any significant effects have been felt. Action should be taken to further diagnose (if necessary) and correct the problem in order to prevent it from becoming a more serious service affecting fault.
-
-
Method Detail
-
values
public static Alarm.SeverityLevel[] 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 (Alarm.SeverityLevel c : Alarm.SeverityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Alarm.SeverityLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-