Public Member Functions | |
final boolean | getSuspended () |
LogTableDataModel (LoggingClient client) throws Exception | |
void | setMaxLog (int max) |
void | setTimeFrame (long timeframe) |
void | loadFromURL () |
void | loadFromFile (String fileName) |
void | saveFile () |
boolean | IOInProgress () |
void | close (boolean sync) |
int | getFieldSortNumber () |
boolean | sortedAscending () |
void | setSortComparator (int index, boolean ascending) |
Public Attributes | |
File | currentDir = null |
Protected Member Functions | |
synchronized void | updateTableEntries () |
Extends the LogEntryTableModelBase
adding I/O, deletion of logs and so on.
alma.acs.logging.table.LogTableDataModel.LogTableDataModel | ( | LoggingClient | client | ) | throws Exception |
LCLogTableDataModel constructor comment. Gets updated logs.
void alma.acs.logging.table.LogTableDataModel.close | ( | boolean | sync | ) |
Closes all the threads and frees the resources This is the last method to call before closing the application
sync | If it is true wait the termination of the threads before returning |
Reimplemented from alma.acs.logging.table.LogEntryTableModelBase.
Referenced by com.cosylab.logging.LoggingClient.close().
int alma.acs.logging.table.LogTableDataModel.getFieldSortNumber | ( | ) |
final boolean alma.acs.logging.table.LogTableDataModel.getSuspended | ( | ) |
Returns whether the saving/loading of the file has been cancelled or not that reflects on the status of the JToggleButton of the GUI. If canceled, then the button should be released.
boolean alma.acs.logging.table.LogTableDataModel.IOInProgress | ( | ) |
Return true if an async load/save is in progress
Referenced by com.cosylab.logging.LoggingClient.EventHandler.menuSelected().
void alma.acs.logging.table.LogTableDataModel.loadFromFile | ( | String | fileName | ) |
Loads logs from a file. If the name of the file is null, a dialog to choose the file is shown.
filename | The name of the file to load |
References alma.acs.logging.table.LogTableDataModel.currentDir, alma.acs.logging.io.LoadFileChooser.execute(), alma.acs.logging.io.LogsFileChooser.getCurrentDirectory(), com.cosylab.logging.LoggingClient.getLogEntryTable(), alma.acs.logging.io.LogsFileChooser.getSelectedFile(), and alma.acs.logging.table.LogEntryTableModelBase.loggingClient.
Referenced by com.cosylab.logging.LoggingClient.EventHandler.actionPerformed().
void alma.acs.logging.table.LogTableDataModel.loadFromURL | ( | ) |
void alma.acs.logging.table.LogTableDataModel.saveFile | ( | ) |
Saves input logs into a file.
References alma.acs.logging.table.LogTableDataModel.currentDir, alma.acs.logging.io.SaveFileChooser.getCompressionLevel(), alma.acs.logging.io.LogsFileChooser.getCurrentDirectory(), alma.acs.logging.io.LogsFileChooser.getSelectedFile(), and alma.acs.logging.io.SaveFileChooser.mustBeCompressed().
Referenced by com.cosylab.logging.LoggingClient.EventHandler.actionPerformed().
void alma.acs.logging.table.LogTableDataModel.setMaxLog | ( | int | max | ) |
Set the max number of logs to keep in cache This is the max number of logs stored in cache (the visible logs can be less)
max | The max number of logs 0 means unlimited |
Referenced by com.cosylab.logging.LoggingClient.EventHandler.actionPerformed().
void alma.acs.logging.table.LogTableDataModel.setSortComparator | ( | int | index, | |
boolean | ascending | |||
) |
void alma.acs.logging.table.LogTableDataModel.setTimeFrame | ( | long | timeframe | ) |
Set the time frame of the logs in the cache The time frame if the amount of time we want to keep in the table for example the last 2hr (the visible logs can be less)
timeframe | The time frame in milliseconds 0 means unlimited |
Referenced by com.cosylab.logging.LoggingClient.EventHandler.actionPerformed().
boolean alma.acs.logging.table.LogTableDataModel.sortedAscending | ( | ) |
synchronized void alma.acs.logging.table.LogTableDataModel.updateTableEntries | ( | ) | [protected] |
Update the table entries before refreshing the table
true
If the model has been changed and the table needs to be refreshed Reimplemented from alma.acs.logging.table.LogEntryTableModelBase.
Contains references to the filters that are currently applied to logs. Actual filters are stored in filters. private final Vector appliedFilters = new Vector();
Stores the current directory which is being accessed.
Referenced by alma.acs.logging.table.LogTableDataModel.loadFromFile(), and alma.acs.logging.table.LogTableDataModel.saveFile().