

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" |
Shows statistics from loaded logs
| com::cosylab::logging::stats::StatsDlg::StatsDlg | ( | LoggingClient | mainWin | ) | [inline] |
| void com::cosylab::logging::stats::StatsDlg::actionPerformed | ( | ActionEvent | e | ) | [inline] |
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
| 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] |
Setup the GUI
References availMemLbl, closeBtn, diskSpace, enableMonitoring(), hiddenLogsLbl, inRateLbl, monitorBtn, numOfCacheFiles, outRateLbl, refreshBtn, timeFrameLbl, totNumOfLogsLbl, usedMemLbl, and visibleLogsLbl.
Referenced by StatsDlg().
| void com::cosylab::logging::stats::StatsDlg::refreshGUI | ( | ) | [inline, private] |
Refresh the values shown in the GUI
A class to refresh the labels of the dialog The thread is executed inside the swing thread
References availMemLbl, diskSpace, com::cosylab::logging::engine::ACS::LCEngine::getActualInputRate(), com::cosylab::logging::engine::ACS::LCEngine::getActualOutputRate(), com::cosylab::logging::LoggingClient::getEngine(), alma::acs::logging::table::LogEntryTable::getLCModel(), com::cosylab::logging::LoggingClient::getLogEntryTable(), com::cosylab::logging::engine::ACS::LCEngine::getMaxInputRate(), com::cosylab::logging::engine::ACS::LCEngine::getMaxOutputRate(), alma::acs::logging::table::LogEntryTableModelBase::getTimeFrame(), alma::acs::logging::table::LogEntryTable::getViewRowCount(), hiddenLogsLbl, inRateLbl, logging, NotAvailable, alma::acs::logging::table::LogEntryTableModelBase::numberOfUsedFiles(), numOfCacheFiles, outRateLbl, timeFrameLbl, alma::acs::logging::table::LogEntryTableModelBase::totalLogNumber(), totNumOfLogsLbl, alma::acs::logging::table::LogEntryTableModelBase::usedDiskSpace(), usedMemLbl, and visibleLogsLbl.
Referenced by actionPerformed(), enableMonitoring(), and setVisible().
| 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().
JLabel com::cosylab::logging::stats::StatsDlg::availMemLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
JButton com::cosylab::logging::stats::StatsDlg::closeBtn = new JButton("Close") [private] |
Referenced by actionPerformed(), and initialize().
JLabel com::cosylab::logging::stats::StatsDlg::diskSpace = new JLabel(NotAvailable) [private] |
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().
JLabel com::cosylab::logging::stats::StatsDlg::hiddenLogsLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
JLabel com::cosylab::logging::stats::StatsDlg::inRateLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
Referenced by refreshGUI(), setVisible(), and StatsDlg().
JButton com::cosylab::logging::stats::StatsDlg::monitorBtn = new JButton("Start monitoring") [private] |
Referenced by actionPerformed(), enableMonitoring(), and initialize().
final int com::cosylab::logging::stats::StatsDlg::MONITORING_INTERVAL = 1000 [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().
JLabel com::cosylab::logging::stats::StatsDlg::numOfCacheFiles = new JLabel(NotAvailable) [private] |
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().
JLabel com::cosylab::logging::stats::StatsDlg::outRateLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
JButton com::cosylab::logging::stats::StatsDlg::refreshBtn = new JButton("Refresh") [private] |
Referenced by actionPerformed(), enableMonitoring(), and initialize().
JLabel com::cosylab::logging::stats::StatsDlg::timeFrameLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
Timer com::cosylab::logging::stats::StatsDlg::timer = null [private] |
The timer for monitoring
Referenced by enableMonitoring().
JLabel com::cosylab::logging::stats::StatsDlg::totNumOfLogsLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
JLabel com::cosylab::logging::stats::StatsDlg::usedMemLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
JLabel com::cosylab::logging::stats::StatsDlg::visibleLogsLbl = new JLabel(NotAvailable) [private] |
Referenced by initialize(), and refreshGUI().
1.6.2