public class StaleAlarmsContainer extends DocumentBase implements SourceListener
Active alarms are stored in a map. When a TERMINATE alarms arrive and the alarm is in the map, it is removed.
If an alarm already present in the map is activated again, it is not modified because we are interested in the longest
time interval.
| Modifier and Type | Class and Description |
|---|---|
class |
StaleAlarmsContainer.StaleAlarm
A stale alarm.
|
colNames, containerTitle, shutdown, tableViewer| Modifier and Type | Method and Description |
|---|---|
void |
faultStateReceived(FaultState faultState)
An alarm has been received from the source NC.
|
static StaleAlarmsContainer |
getInstance() |
java.util.Collection<StaleAlarmsContainer.StaleAlarm> |
getNumbers() |
void |
setTableContent(TableData tData)
Add the text of the cells of the table
|
void |
setTableViewer(TableViewer table)
Ovveride to start the thread to refresh the vie
|
void |
sourceXMLMsgReceived(java.lang.String asiMessage)
An XML has been received from the source NC.
|
getDataToSave, run, shutdownContainerpublic static StaleAlarmsContainer getInstance()
public void faultStateReceived(FaultState faultState)
SourceListenerfaultStateReceived in interface SourceListenerpublic void sourceXMLMsgReceived(java.lang.String asiMessage)
SourceListenerThe XML follows the ASIMessage.xsd schema definition and therefore it might have one or more fault states.
sourceXMLMsgReceived in interface SourceListenerasiMessage - The ASIMessage received from an alarm sourcepublic java.util.Collection<StaleAlarmsContainer.StaleAlarm> getNumbers()
getNumbers in class DocumentBasepublic void setTableViewer(TableViewer table)
setTableViewer in class DocumentBasetable - the table viewer showing these alarmspublic void setTableContent(TableData tData)
DocumentBasesetTableContent in class DocumentBasetData - The table data to set the string of the rows