alma::acs::logtools::monitor::LogMonitor Class Reference

Collaboration diagram for alma::acs::logtools::monitor::LogMonitor:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
acaproni
Since:
ACS 8.1.0

Constructor & Destructor Documentation

alma::acs::logtools::monitor::LogMonitor::LogMonitor ( String[]  args  )  [inline]

Constructor

Parameters:
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().


Member Function Documentation

void alma::acs::logtools::monitor::LogMonitor::close (  )  [inline]
static void alma::acs::logtools::monitor::LogMonitor::main ( String[]  args  )  [inline, static]

Starts the application

Parameters:
args Command line arguments

References LogMonitor().

boolean alma::acs::logtools::monitor::LogMonitor::parseCmdLineArgs ( String[]  args  )  [inline, private]

Parse the command line

Parameters:
args The command line params
Returns:
true if the user asked for help

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().


Member Data Documentation

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().

The folder to write files into. Default is the current folder.

Referenced by LogMonitor(), and parseCmdLineArgs().

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().

true if the user wants the output on files

Referenced by LogMonitor(), and parseCmdLineArgs().


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

Generated by  doxygen 1.6.2