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 |
Private Member Functions | |
void | saveFile (String fileName, boolean compress, int level) |
IOLogsHelper | getIOHelper () |
void | checkTimeFrame () |
void | deleteLogs (Integer[] keys) |
Private Attributes | |
LoggingClient | loggingClient = null |
boolean | isSuspended = true |
IOLogsHelper | ioHelper = null |
int | maxLog = 0 |
long | timeFrame = 0 |
LogDeleter | logDeleter |
LogEntryTableModelBase
adding I/O, deletion of logs and so on.
|
LCLogTableDataModel constructor comment. Gets updated logs. |
|
Check if the time frame of the logs in cache exceeds the limit and if it is the case, deletes the oldest logs |
|
Closes all the threads and frees the resources This is the last method to call before closing the application
Reimplemented from alma::acs::logging::table::LogEntryTableModelBase.
|
|
Delete the first
|
|
|
|
A getter method that created the helper only when needed
|
|
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. |
|
Return true if an async load/save is in progress
|
|
Loads logs from a file. If the name of the file is null, a dialog to choose the file is shown.
|
|
|
|
Save the logs in a file
|
|
Saves input logs into a file. |
|
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)
|
|
|
|
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)
|
|
|
|
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. |
|
An object to load and save logs |
|
|
|
The thread to delete the logs asynchronously |
|
The LoggingClient that owns this table model |
|
The max number of logs in cache This limit is not for the buffer but for the size of the whole cache A value of 0 means unlimited |
|
The time frame of the logs to keep in cache This limit is not for the buffer but for the timeframe of the whole cache A value of 0 means unlimited |