

Public Member Functions | |
| QueryDlg (ArchiveConnectionManager archiveConn, ACSRemoteLogListener listener, ACSRemoteErrorListener errorListener, LoggingClient client) | |
| void | actionPerformed (ActionEvent e) |
| void | setVisible (boolean visible) |
| void | close () |
Private Member Functions | |
| void | initGUI () |
| JComboBox | setupTypeCB (JComboBox box) |
| void | submitQuery () |
| boolean | checkFields () |
| String | formatErrorMsg (String msg) |
| void | updateStatusLbl (final String msg) |
Private Attributes | |
| ACSRemoteLogListener | logListener |
| ACSRemoteErrorListener | errorListener |
| JButton | submitBtn |
| JButton | doneBtn |
| ArchiveConnectionManager | archive |
| JTextField | fromYY |
| JTextField | fromMM |
| JTextField | fromDD |
| JTextField | fromHr |
| JTextField | fromMin |
| JTextField | fromSec |
| JTextField | toYY |
| JTextField | toMM |
| JTextField | toDD |
| JTextField | toHr |
| JTextField | toMin |
| JTextField | toSec |
| JComboBox | minLogLevelCB |
| JComboBox | maxLogLevelCB |
| JTextField | procName |
| JTextField | sourceName |
| JTextField | routineName |
| JTextField | rowLimit |
| ACSLogParser | parser = null |
| LoggingClient | loggingClient = null |
| LoadSwitchesPanel | guiSwitches |
| JLabel | statusLbl = new JLabel() |
| volatile boolean | terminateThread |
A class to setup a query to submit to the DB
| alma::acs::logging::archive::QueryDlg::QueryDlg | ( | ArchiveConnectionManager | archiveConn, | |
| ACSRemoteLogListener | listener, | |||
| ACSRemoteErrorListener | errorListener, | |||
| LoggingClient | client | |||
| ) | [inline] |
Constructor
References archive, initGUI(), loggingClient, logListener, parser, and setVisible().
| void alma::acs::logging::archive::QueryDlg::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References doneBtn, setVisible(), submitBtn, submitQuery(), and terminateThread.
| boolean alma::acs::logging::archive::QueryDlg::checkFields | ( | ) | [inline, private] |
| void alma::acs::logging::archive::QueryDlg::close | ( | ) | [inline] |
Close the dialog, terminate the thread a free all the resources.
References setVisible(), and terminateThread.
Referenced by com::cosylab::logging::LoggingClient::close().
| String alma::acs::logging::archive::QueryDlg::formatErrorMsg | ( | String | msg | ) | [inline, private] |
Return a string formatted for JOptionPane making a word wrap
| error | The error i.e. the exception | |
| msg | The message to show |
Referenced by submitQuery().
| void alma::acs::logging::archive::QueryDlg::initGUI | ( | ) | [inline, private] |
Build the GUI
References archive, doneBtn, fromDD, fromHr, fromMin, fromMM, fromSec, fromYY, alma::acs::logging::archive::ArchiveConnectionManager::getDBStatus(), guiSwitches, loggingClient, maxLogLevelCB, minLogLevelCB, procName, routineName, rowLimit, setupTypeCB(), sourceName, statusLbl, submitBtn, toDD, toHr, toMin, toMM, toSec, and toYY.
Referenced by QueryDlg().
| JComboBox alma::acs::logging::archive::QueryDlg::setupTypeCB | ( | JComboBox | box | ) | [inline, private] |
Referenced by initGUI().
| void alma::acs::logging::archive::QueryDlg::setVisible | ( | boolean | visible | ) | [inline] |
Override setVisible() to move the statistic window over the logging client and in front of other windows
References alma::acs::logging::io::LoadSwitchesPanel::checkControlsState(), guiSwitches, and loggingClient.
Referenced by actionPerformed(), com::cosylab::logging::LoggingClient::EventHandler::actionPerformed(), close(), and QueryDlg().
| void alma::acs::logging::archive::QueryDlg::submitQuery | ( | ) | [inline, private] |
Submit a query to the archive and insert the logs in the main window
References archive, alma::acs::logging::io::LoadSwitchesPanel::checkControlsState(), checkFields(), errorListener, com::cosylab::logging::engine::ACS::ACSRemoteErrorListener::errorReceived(), alma::acs::logging::io::LoadSwitchesPanel::execute(), formatErrorMsg(), fromDD, fromHr, fromMin, fromMM, fromSec, fromYY, alma::acs::logging::archive::ArchiveConnectionManager::getLogs(), guiSwitches, com::cosylab::logging::engine::ACS::ACSRemoteLogListener::logEntryReceived(), loggingClient, logListener, maxLogLevelCB, minLogLevelCB, alma::acs::logging::engine::parser::ACSLogParser::parse(), parser, procName, com::cosylab::logging::LoggingClient::reportStatus(), routineName, rowLimit, sourceName, terminateThread, toDD, toHr, toMin, toMM, toSec, toYY, and updateStatusLbl().
Referenced by actionPerformed().
| void alma::acs::logging::archive::QueryDlg::updateStatusLbl | ( | final String | msg | ) | [inline, private] |
Set a new message in the status label.
| msg | The message to show in the label |
References statusLbl.
Referenced by submitQuery().
Referenced by initGUI(), QueryDlg(), and submitQuery().
JButton alma::acs::logging::archive::QueryDlg::doneBtn [private] |
Referenced by actionPerformed(), and initGUI().
Referenced by submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromDD [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromHr [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromMin [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromMM [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromSec [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::fromYY [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
Referenced by initGUI(), setVisible(), and submitQuery().
LoggingClient alma::acs::logging::archive::QueryDlg::loggingClient = null [private] |
Referenced by initGUI(), QueryDlg(), setVisible(), and submitQuery().
Referenced by QueryDlg(), and submitQuery().
JComboBox alma::acs::logging::archive::QueryDlg::maxLogLevelCB [private] |
Referenced by initGUI(), and submitQuery().
JComboBox alma::acs::logging::archive::QueryDlg::minLogLevelCB [private] |
Referenced by initGUI(), and submitQuery().
ACSLogParser alma::acs::logging::archive::QueryDlg::parser = null [private] |
Referenced by QueryDlg(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::procName [private] |
Referenced by initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::routineName [private] |
Referenced by initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::rowLimit [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::sourceName [private] |
Referenced by initGUI(), and submitQuery().
JLabel alma::acs::logging::archive::QueryDlg::statusLbl = new JLabel() [private] |
The label showing the status of a query to give feedback to users
Referenced by initGUI(), and updateStatusLbl().
JButton alma::acs::logging::archive::QueryDlg::submitBtn [private] |
Referenced by actionPerformed(), and initGUI().
volatile boolean alma::acs::logging::archive::QueryDlg::terminateThread [private] |
Signal the thread that get logs from the DB that the user pressed cancel to abort
Referenced by actionPerformed(), close(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toDD [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toHr [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toMin [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toMM [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toSec [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
JTextField alma::acs::logging::archive::QueryDlg::toYY [private] |
Referenced by checkFields(), initGUI(), and submitQuery().
1.6.2