Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::table::LogTableDataModel::LogDeleter Class Reference

List of all members.

Public Member Functions

 LogDeleter ()
void close (boolean sync)
void run ()

Private Attributes

final int TIME_INTERVAL = 30
Thread deleterThread = null
volatile boolean terminateThread = false

Detailed Description

The class contains a thread to delete asynchronously the logs running at low priority. The thread runs once awhile as specified by the TIME_INTERVAL local variable.

Author:
acaproni


Constructor & Destructor Documentation

alma::acs::logging::table::LogTableDataModel::LogDeleter::LogDeleter  )  [inline]
 

Constructor


Member Function Documentation

void alma::acs::logging::table::LogTableDataModel::LogDeleter::close boolean  sync  )  [inline]
 

Terminate the thread

Parameters:
sync If it is true wait the termination of the thread before returning

void alma::acs::logging::table::LogTableDataModel::LogDeleter::run  )  [inline]
 

The thread to delete logs.

The table is notified about the deletion of the logs but logs are removed from the data structures of the model later by a dedicated thread


Member Data Documentation

Thread alma::acs::logging::table::LogTableDataModel::LogDeleter::deleterThread = null [private]
 

The thread to delete logs The deletion must be done asynchronously to avoid blocking the GUI

volatile boolean alma::acs::logging::table::LogTableDataModel::LogDeleter::terminateThread = false [private]
 

Signal the thread to terminate

final int alma::acs::logging::table::LogTableDataModel::LogDeleter::TIME_INTERVAL = 30 [private]
 

The time interval between two iteration of the thread


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:59 2009 for ACS Java API by doxygen 1.3.8