com::cosylab::logging::stats::StatsDlg Class Reference

Inheritance diagram for com::cosylab::logging::stats::StatsDlg:
Inheritance graph
[legend]
Collaboration diagram for com::cosylab::logging::stats::StatsDlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatsDlg (LoggingClient mainWin)
void setVisible (boolean visible)
void actionPerformed (ActionEvent e)

Private Member Functions

void initialize ()
void refreshGUI ()
void enableMonitoring (boolean start)

Private Attributes

final int MONITORING_INTERVAL = 1000
JLabel totNumOfLogsLbl = new JLabel(NotAvailable)
JLabel visibleLogsLbl = new JLabel(NotAvailable)
JLabel hiddenLogsLbl = new JLabel(NotAvailable)
JLabel availMemLbl = new JLabel(NotAvailable)
JLabel usedMemLbl = new JLabel(NotAvailable)
JLabel timeFrameLbl = new JLabel(NotAvailable)
JLabel inRateLbl = new JLabel(NotAvailable)
JLabel outRateLbl = new JLabel(NotAvailable)
JLabel numOfCacheFiles = new JLabel(NotAvailable)
JLabel diskSpace = new JLabel(NotAvailable)
JButton closeBtn = new JButton("Close")
JButton refreshBtn = new JButton("Refresh")
JButton monitorBtn = new JButton("Start monitoring")
LoggingClient logging
Timer timer = null

Static Private Attributes

static final String NotAvailable = "N/A"

Detailed Description

Shows statistics from loaded logs

Author:
acaproni

Constructor & Destructor Documentation

com::cosylab::logging::stats::StatsDlg::StatsDlg ( LoggingClient  mainWin  )  [inline]

Builds and show the dialog

Parameters:
logCache 

References initialize(), and logging.


Member Function Documentation

void com::cosylab::logging::stats::StatsDlg::actionPerformed ( ActionEvent  e  )  [inline]
See also:
ActionListener<?code>

References closeBtn, enableMonitoring(), monitorBtn, refreshBtn, refreshGUI(), and setVisible().

void com::cosylab::logging::stats::StatsDlg::enableMonitoring ( boolean  start  )  [inline, private]

Start or stop the monitoring

Parameters:
start If true start monitoring

References monitorBtn, MONITORING_INTERVAL, refreshBtn, refreshGUI(), and timer.

Referenced by actionPerformed(), initialize(), and setVisible().

void com::cosylab::logging::stats::StatsDlg::initialize (  )  [inline, private]
void com::cosylab::logging::stats::StatsDlg::refreshGUI (  )  [inline, private]
void com::cosylab::logging::stats::StatsDlg::setVisible ( boolean  visible  )  [inline]

Override setVisible() to move the statistic window over the logging client and in front of other windows

References enableMonitoring(), logging, and refreshGUI().

Referenced by actionPerformed(), com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), and com::cosylab::logging::LoggingClient::close().


Member Data Documentation

Referenced by initialize(), and refreshGUI().

JButton com::cosylab::logging::stats::StatsDlg::closeBtn = new JButton("Close") [private]

Referenced by actionPerformed(), and initialize().

The disk space used by all the files of the cache (it refers to the cache of jlog and not to the cache of the engine)

Referenced by initialize(), and refreshGUI().

Referenced by initialize(), and refreshGUI().

Referenced by initialize(), and refreshGUI().

Referenced by refreshGUI(), setVisible(), and StatsDlg().

JButton com::cosylab::logging::stats::StatsDlg::monitorBtn = new JButton("Start monitoring") [private]

The interval (msec) between iterations while monitoring

Referenced by enableMonitoring().

final String com::cosylab::logging::stats::StatsDlg::NotAvailable = "N/A" [static, private]

The string shown when it is not possible to get a value from the system

Referenced by refreshGUI().

The number of the cache files (it refers to the cache of jlog and not to the cache of the engine)

Referenced by initialize(), and refreshGUI().

Referenced by initialize(), and refreshGUI().

JButton com::cosylab::logging::stats::StatsDlg::refreshBtn = new JButton("Refresh") [private]

Referenced by initialize(), and refreshGUI().

The timer for monitoring

Referenced by enableMonitoring().

Referenced by initialize(), and refreshGUI().

Referenced by initialize(), and refreshGUI().

Referenced by initialize(), and refreshGUI().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2