Public Member Functions | Public Attributes | Protected Member Functions

alma.acs.logging.table.LogTableDataModel Class Reference

Inheritance diagram for alma.acs.logging.table.LogTableDataModel:
alma.acs.logging.table.LogEntryTableModelBase

List of all members.

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 ()

Detailed Description

Extends the LogEntryTableModelBase adding I/O, deletion of logs and so on.

Author:
: Ales Pucelj (ales.pucelj@kgb.ijs.si)

Constructor & Destructor Documentation

alma.acs.logging.table.LogTableDataModel.LogTableDataModel ( LoggingClient  client  )  throws Exception

LCLogTableDataModel constructor comment. Gets updated logs.


Member Function Documentation

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

Parameters:
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

Returns:

Referenced by com.cosylab.logging.LoggingClient.EventHandler.menuSelected().

void alma.acs.logging.table.LogTableDataModel.loadFromFile ( String  fileName  ) 
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)

Parameters:
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)

Parameters:
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

Returns:
true If the model has been changed and the table needs to be refreshed

Reimplemented from alma.acs.logging.table.LogEntryTableModelBase.


Member Data Documentation

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().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties