Package org.eso.ias.monitor
Enum Class MonitorAlarm
- All Implemented Interfaces:
Serializable
,Comparable<MonitorAlarm>
,Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the alarmgetAlarm()
GetterGettervoid
Set an alarm This method can be called for eachMonitorAlarm
apart of GLOBAL whose clearing/setting is done bygetGlobalAlarm()
void
setPriority
(Priority newPriority) Set the priority of the alarmstatic MonitorAlarm
Returns the enum constant of this class with the specified name.static MonitorAlarm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLUGIN_DEAD
-
CONVERTER_DEAD
-
SUPERVISOR_DEAD
-
SINK_DEAD
-
CLIENT_DEAD
-
CORETOOL_DEAD
-
GLOBAL
-
-
Field Details
-
id
The ID of each alarm
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getAlarm
Getter- Returns:
- The alarm
-
getProperties
Getter- Returns:
- The faulty IDs
-
clear
public void clear()Clear the alarm -
set
Set an alarm This method can be called for eachMonitorAlarm
apart of GLOBAL whose clearing/setting is done bygetGlobalAlarm()
- Parameters:
faultyIds
- the comma separated IDs of tools that did not sent the HB
-
setPriority
Set the priority of the alarm- Parameters:
newPriority
- the priority to set
-