Enum Class MonitorAlarm

java.lang.Object
java.lang.Enum<MonitorAlarm>
org.eso.ias.monitor.MonitorAlarm
All Implemented Interfaces:
Serializable, Comparable<MonitorAlarm>, Constable

public enum MonitorAlarm extends Enum<MonitorAlarm>
An enumerated with all the alarms generated by the Monitor tool. GLOBAL is a multiplicity alarm that is activated if at least one of the others is SET. For that reason, #set(Alarm, String) throws exception if the MonitorAlarm is GLOBAL. The monitor tool periodically sends these alarms.
  • Enum Constant Details

  • Field Details

    • id

      public final String id
      The ID of each alarm
  • Method Details

    • values

      public static MonitorAlarm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MonitorAlarm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAlarm

      public Alarm getAlarm()
      Getter
      Returns:
      The alarm
    • getProperties

      public String getProperties()
      Getter
      Returns:
      The faulty IDs
    • clear

      public void clear()
      Clear the alarm
    • set

      public void set(String faultyIds)
      Set an alarm This method can be called for each MonitorAlarm apart of GLOBAL whose clearing/setting is done by getGlobalAlarm()
      Parameters:
      faultyIds - the comma separated IDs of tools that did not sent the HB
    • setPriority

      public void setPriority(Priority newPriority)
      Set the priority of the alarm
      Parameters:
      newPriority - the priority to set