Public Member Functions | |
LogEntryTableModelBase () throws Exception | |
Override final int | getColumnCount () |
Override int | getRowCount () |
Override synchronized Object | getValueAt (int row, int column) |
synchronized ILogEntry | getVisibleLogEntry (int row) |
synchronized void | clearAll () |
long | totalLogNumber () |
Calendar | getTimeFrame () |
synchronized Integer | getLogKey (int index) |
synchronized int | findKeyPos (Integer key) |
final String | getColumnName (int columnIndex) |
final Class<?> | getColumnClass (int column) |
synchronized void | appendLog (ILogEntry log) |
synchronized void | replaceLog (int pos, ILogEntry newEntry) |
void | close (boolean sync) |
Protected Attributes | |
LogCache | allLogs = null |
RowEntries | rows = new RowEntries(10000) |
Vector< Integer > | rowsToAdd = new Vector<Integer>() |
TableUpdater | tableUpdater |
Private Member Functions | |
void | flushLogs () |
Private Attributes | |
boolean | closed = false |
This model can be reused by log tables with reduced functionalities like the error browsers.
|
Constructor |
|
Adds the log to the table.
To avoid updating the table very frequently, the logs to add are immediately inserted in the
|
|
Remove all the logs |
|
Closes all the threads and frees the resources This is the last method to call before closing the application
Reimplemented in alma::acs::logging::table::LogTableDataModel.
|
|
Return the position of the key in the vector.
There are cases when the key is not anymore in the vector and in such situations this method return
|
|
Flush the logs from the temporary vector into the table.
New logs are appended in the temporary vector |
|
Returns default class for column. Creation date: (12/1/2001 14:18:53)
|
|
Return number of columns in table |
|
Returns name of the column based LogEntryXML fields. If the specified index does not return a valid column, blank string is returned. Creation date: (11/11/2001 13:50:16)
|
|
Return the key of the log in the given position of the vector of keys.
There are several cases that forbids to retrieve the key in the given position, in such a situations the method return
|
|
|
|
|
|
Returns an item according to the row and the column of its position.
|
|
Return the log shown in the passed row.
|
|
Replace a log entry with another
|
|
|
|
The cache of all the logs received. |
|
|
|
Each row shows a log identified by a key returned by the cache. This vector stores the key of each log shown in the table. |
|
The vector of logs to add in the rows.
Newly arrived logs are added to this vector and flushed into |
|
The thread to refresh the content of the table |