
Public Member Functions | |
| LogMonitor (String[] args) | |
| void | close () |
| void | run () |
Static Public Member Functions | |
| static void | printUsage () |
| static void | main (String[] args) |
Private Member Functions | |
| boolean | parseCmdLineArgs (String[] args) |
Private Attributes | |
| boolean | outputOnfiles = false |
| boolean | gui = true |
| String | folder = "." |
| final FileStatistics | fileStatistics |
| final LogMonitorFrame | logMonitorGUI |
| final LogDetailsDispatcher | logNumDispatcher |
| boolean | closed = false |
The LogMonitor tool connects to the logging NC and elaborates statistics on the logs it receives.
The statistics are based on the type (i.e. level) of the logs and not on their content.
| alma::acs::logtools::monitor::LogMonitor::LogMonitor | ( | String[] | args | ) | [inline] |
Constructor
| args | The command line params |
wait until the user closes the application
References alma::acs::logtools::monitor::LogDetailsDispatcher::addNumsListener(), closed, fileStatistics, folder, gui, logMonitorGUI, logNumDispatcher, outputOnfiles, and parseCmdLineArgs().
Referenced by main().
| void alma::acs::logtools::monitor::LogMonitor::close | ( | ) | [inline] |
Terminates the application
References alma::acs::logtools::monitor::gui::LogMonitorFrame::close(), alma::acs::logtools::monitor::file::FileStatistics::close(), alma::acs::logtools::monitor::LogDetailsDispatcher::close(), closed, fileStatistics, logMonitorGUI, logNumDispatcher, and alma::acs::logtools::monitor::LogDetailsDispatcher::removeNumsListener().
Referenced by alma::acs::logtools::monitor::gui::LogMonitorFrame::actionPerformed(), run(), and alma::acs::logtools::monitor::gui::LogMonitorFrame::MyWindowAdapter::windowClosing().
| static void alma::acs::logtools::monitor::LogMonitor::main | ( | String[] | args | ) | [inline, static] |
| boolean alma::acs::logtools::monitor::LogMonitor::parseCmdLineArgs | ( | String[] | args | ) | [inline, private] |
Parse the command line
| args | The command line params |
References folder, alma::acs::util::CmdLineArgs::getValues(), gui, alma::acs::util::CmdLineArgs::isSpecified(), outputOnfiles, alma::acs::util::CmdLineArgs::parseArgs(), and alma::acs::util::CmdLineArgs::registerOption().
Referenced by LogMonitor().
| static void alma::acs::logtools::monitor::LogMonitor::printUsage | ( | ) | [inline, static] |
Print the usage message
| void alma::acs::logtools::monitor::LogMonitor::run | ( | ) | [inline] |
The thread for the shutdown hook
References close().
boolean alma::acs::logtools::monitor::LogMonitor::closed = false [private] |
true if the application has been closed
Referenced by close(), and LogMonitor().
The listener that generates statistics on file
it is null if the user does not want statistics on file.
Referenced by close(), and LogMonitor().
String alma::acs::logtools::monitor::LogMonitor::folder = "." [private] |
The folder to write files into. Default is the current folder.
Referenced by LogMonitor(), and parseCmdLineArgs().
boolean alma::acs::logtools::monitor::LogMonitor::gui = true [private] |
true if the user wants the panel
Referenced by LogMonitor(), and parseCmdLineArgs().
The listener that display stats on GUI.
it is null if the user does not want the GUI.
Referenced by close(), and LogMonitor().
The dispatcher of numbers to listeners
Referenced by close(), and LogMonitor().
boolean alma::acs::logtools::monitor::LogMonitor::outputOnfiles = false [private] |
true if the user wants the output on files
Referenced by LogMonitor(), and parseCmdLineArgs().
1.6.2