Package csw.alarm.models
Class AlarmMetadata
- java.lang.Object
- 
- csw.alarm.models.AlarmMetadata
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- scala.Equals,- scala.Product
 
 public class AlarmMetadata extends java.lang.Object implements scala.Product, java.io.SerializableRepresents the metadata of an alarm e.g. name, subsystem it belongs to, supported severities, etc. This information is read from the config file for alarms and stored in alarm store. Metadata is referred while setting the severity to validate the operation. An alarm does not change it's metadata in it's entire life span.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AlarmMetadata(Subsystem subsystem, java.lang.String component, java.lang.String name, java.lang.String description, java.lang.String location, AlarmType alarmType, scala.collection.immutable.Set<FullAlarmSeverity> supportedSeverities, java.lang.String probableCause, java.lang.String operatorResponse, boolean isAutoAcknowledgeable, boolean isLatchable, ActivationStatus activationStatus)
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ActivationStatusactivationStatus()Key.AlarmKeyalarmKey()Represents a unique alarm in the storeAlarmTypealarmType()scala.collection.immutable.Set<FullAlarmSeverity>allSupportedSeverities()A collection of all severities the alarm can be raised to including Indeterminate and Okayabstract static Rapply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12)java.lang.Stringcomponent()java.lang.Stringdescription()booleanisActive()Represents whether the alarm is active or notbooleanisAutoAcknowledgeable()booleanisLatchable()java.lang.Stringlocation()java.lang.Stringname()java.lang.StringoperatorResponse()java.lang.StringprobableCause()Subsystemsubsystem()scala.collection.immutable.Set<FullAlarmSeverity>supportedSeverities()static java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
AlarmMetadatapublic AlarmMetadata(Subsystem subsystem, java.lang.String component, java.lang.String name, java.lang.String description, java.lang.String location, AlarmType alarmType, scala.collection.immutable.Set<FullAlarmSeverity> supportedSeverities, java.lang.String probableCause, java.lang.String operatorResponse, boolean isAutoAcknowledgeable, boolean isLatchable, ActivationStatus activationStatus) 
 
- 
 - 
Method Detail- 
applypublic abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5, T6 v6, T7 v7, T8 v8, T9 v9, T10 v10, T11 v11, T12 v12)
 - 
toStringpublic static java.lang.String toString() 
 - 
subsystempublic Subsystem subsystem() 
 - 
componentpublic java.lang.String component() 
 - 
namepublic java.lang.String name() 
 - 
descriptionpublic java.lang.String description() 
 - 
locationpublic java.lang.String location() 
 - 
alarmTypepublic AlarmType alarmType() 
 - 
supportedSeveritiespublic scala.collection.immutable.Set<FullAlarmSeverity> supportedSeverities() 
 - 
probableCausepublic java.lang.String probableCause() 
 - 
operatorResponsepublic java.lang.String operatorResponse() 
 - 
isAutoAcknowledgeablepublic boolean isAutoAcknowledgeable() 
 - 
isLatchablepublic boolean isLatchable() 
 - 
activationStatuspublic ActivationStatus activationStatus() 
 - 
alarmKeypublic Key.AlarmKey alarmKey() Represents a unique alarm in the store- Returns:
- an instance of AlarmKey composed of subsystem, component and name of the alarm
 
 - 
isActivepublic boolean isActive() Represents whether the alarm is active or not- Returns:
- (undocumented)
 
 - 
allSupportedSeveritiespublic scala.collection.immutable.Set<FullAlarmSeverity> allSupportedSeverities() A collection of all severities the alarm can be raised to including Indeterminate and Okay- Returns:
- (undocumented)
 
 
- 
 
-