
Public Types | |
| enum | AlarmTableColumn { HIDES_CHILDREN, flag, true, REDUCED, flag, true, ICON, flag, true, Time, null, true, Component, null, true, Code, null, true, Priority, null, true, Description, null, true, Cause, null, true, Action, null, false, Consequence, null, false, URL, null, false, Contact, null, false, email, null, false, GSM, null, false, Triplet, null, false, Family, null, title, popupTitle, visibleAtStartup = title (popupTitle==null) ? title : popupTitleinitiallyVisible } |
Public Member Functions | |
| AlarmTableModel (JComponent owner, boolean reduce) | |
| synchronized void | onAlarm (Alarm alarm) |
| synchronized void | acknowledge (Alarm alarm) |
| void | onException (LaserSelectionException e) |
| int | getRowCount () |
| int | getColumnCount () |
| Object | getCellContent (int rowIndex, int columnIndex) |
| void | setAutoAckLevel (ComboBoxValues lvl) |
| Object | getValueAt (int rowIndex, int columnIndex) |
| Override String | getColumnName (int col) |
| Alarm | getRowAlarm (int row) |
| AlarmTableEntry | getRowEntry (int row) |
| boolean | isRowAlarmNew (int row) |
| AlarmCounter | getAlarmCounter (AlarmGUIType type) |
| void | alarmSelected (int row) |
| synchronized void | removeInactiveAlarms (AlarmGUIType type) |
| void | setConnectionListener (ConnectionListener listener) |
| void | applyReductions (boolean reduce) |
| void | setCategoryClient (CategoryClient client) |
| CategoryClient | getCategoryClient () |
| synchronized void | clear () |
| void | pause (boolean pause) |
| Override void | run () |
| void | close () |
Static Public Attributes | |
| final int | MAX_ALARMS = 20000 |
| final int | QUEUE_SIZE = 15000 |
Package Types | |
Private Member Functions | |
| void | addAlarm (Alarm alarm) |
| void | autoAcknowledge (Alarm alarm) |
| void | replaceAlarm (Alarm newAlarm) |
Private Attributes | |
| SimpleDateFormat | dateFormat = new IsoDateFormat() |
| HashMap< AlarmGUIType, AlarmCounter > | counters = new HashMap<AlarmGUIType AlarmCounter>() |
| ConnectionListener | connectionListener = null |
| LinkedBlockingQueue< Alarm > | queue = new LinkedBlockingQueue<Alarm>(QUEUE_SIZE) |
| Semaphore | paused = new Semaphore(1) |
| volatile boolean | terminateThread = false |
| final Thread | thread |
| boolean | waitIfQueueFull = false |
| JComponent | owner |
| AlarmsReductionContainer | items = null |
| boolean | applyReductionRules |
| ComboBoxValues | autoAckLvl = ComboBoxValues.NONE |
|
|
||||||||||||
|
Constructor
|
|
|
Acknowledge an alarm that in this version ends up to removing from the table
|
|
|
|
|
|
The user pressed one mouse button over a row |
|
|
Enable/disable the applying of reduction rules in the table. by applying reduction rules, the table will not show reduced alarms.
|
|
|
Automatically acknowledge an alarm depending on its priority and the selected priority level
|
|
|
Clear the content of the model |
|
|
Terminate the thread and free the resources. |
|
|
Return the counter for the given alarm type
|
|
|
Get the
|
|
||||||||||||
|
Return the text to display in a cell as it is read by the alarm without any formatting (the table add some formatting for example the color)
|
|
|
|
|
|
|
|
|
Return the alarm whose content fills the given row
|
|
|
|
|
|
Return the entry the given row
|
|
||||||||||||
|
|
|
|
|
|
|
Add an alarm in the queue. The thread will get the alarm from the queue and update the model.
|
|
|
Get exception from the client. A message is notified to the listener or written in the standard output if the listener is
|
|
|
Pause/un-pause the update of the table
If it is paused then the alarms received in
|
|
|
Remove all the inactive alarms of a given type delegating to the AlarmsContainer. If the type is
|
|
|
Replace an alarm already in the table
|
|
|
The thread getting alarms from the queue and injecting in the model. If an alarm with the same triplet is already in the table it is replaced.
|
|
|
Set the auto acknowledge level i.e. All the inactive alarms having a level equal or lower the the passed level automatically disappear from the table (i.e. with no user intervention)
|
|
|
Set the
|
|
|
Set the connection listener
|
|
|
If |
|
|
The auto acknowledge level |
|
|
The listener about the status of the connection
|
|
|
The counter for the alarms |
|
|
The date format |
|
|
The alarms in the table |
|
|
The max number of alarms in the table When the max has been reach, the oldest alarm is removed before adding a new one |
|
|
The owner component (used to show dialog messages) |
|
|
The semaphore used to pause the thread
When the application is not paused, the thread acquire the semaphore before getting an alarm from the queue and release it when done. |
|
|
The queue of alarms received from the |
|
|
The max alarm in queue when the table is paused |
|
|
Signal the thread to terminate |
|
|
The thread |
|
|
The behavior if the queue is full.
If it is
If it is |
1.3.8