Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::dialogs::main::LogFrame Class Reference

Collaboration diagram for alma::acs::logging::dialogs::main::LogFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LogFrame (File filterFile, String logFileName, LogTypeHelper discardLevel, boolean doNotConnect, boolean unlimited)
void windowActivated (java.awt.event.WindowEvent e)
void windowOpened (java.awt.event.WindowEvent e)
void windowClosed (java.awt.event.WindowEvent e)
void windowDeactivated (java.awt.event.WindowEvent e)
void windowDeiconified (java.awt.event.WindowEvent e)
void windowIconified (java.awt.event.WindowEvent e)
void windowClosing (java.awt.event.WindowEvent e)
void closeApplication ()

Static Public Member Functions

void main (java.lang.String[] args)

Private Member Functions

void initialize (LogTypeHelper discardLevel, boolean unlimited)
void initShutdownHook ()

Static Private Member Functions

void printUsage (String errorMsg)

Private Attributes

volatile boolean closing = false
LoggingClient loggingClient
Logger logger
ShutdownHook shutdownHook

Detailed Description

The window with all the controls of the main GUI:

Author:
acaproni


Constructor & Destructor Documentation

alma::acs::logging::dialogs::main::LogFrame::LogFrame File  filterFile,
String  logFileName,
LogTypeHelper  discardLevel,
boolean  doNotConnect,
boolean  unlimited
[inline]
 

Constructor Creates the main window and setup the panel with the controls.

Parameters:
filterFile A file of filters to load It can be null if there are no filters to load
logFile A file of logs to load It can be null if there are no logs to load
discardLevel The discard level to set in the engine; If null the level in the engine is not set and the default is used
doNotConnect If true do not try to connect to ACS (i.e. start offline)
unlimited If true the number of logs in memory is unlimited, otherwise the default is used


Member Function Documentation

void alma::acs::logging::dialogs::main::LogFrame::closeApplication  )  [inline]
 

Close the application

void alma::acs::logging::dialogs::main::LogFrame::initialize LogTypeHelper  discardLevel,
boolean  unlimited
[inline, private]
 

Initialize the content of the frame

Parameters:
discardLevel The discard level
unlimited If true the number of logs in memory is unlimited, otherwise the default is used

void alma::acs::logging::dialogs::main::LogFrame::initShutdownHook  )  [inline, private]
 

Init the shutdown hook that intercept CTRL+C events and cleanly terminates the application

void alma::acs::logging::dialogs::main::LogFrame::main java.lang.String[]  args  )  [inline, static]
 

Starts the application.

Parameters:
args an array of command-line arguments

If it is null then the user specified a file name in the command line

If it is null then the user specified a filter file name in the command line

true if the user do not want the logging client tries to connect to ACS at startup

true if the user does not want to limit the number of logs to keep in memory

The initial discard level. If it not set in the command line, the logging client starts with the default discard level

void alma::acs::logging::dialogs::main::LogFrame::printUsage String  errorMsg  )  [inline, static, private]
 

Print the standard usage message if the parameters in the command line are wrong.

Parameters:
errorMsg An optional error message to print

void alma::acs::logging::dialogs::main::LogFrame::windowActivated java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowClosed java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowClosing java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowDeactivated java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowDeiconified java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowIconified java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener

void alma::acs::logging::dialogs::main::LogFrame::windowOpened java.awt.event.WindowEvent  e  )  [inline]
 

See also:
WindowListener


Member Data Documentation

volatile boolean alma::acs::logging::dialogs::main::LogFrame::closing = false [private]
 

Logger alma::acs::logging::dialogs::main::LogFrame::logger [private]
 

LoggingClient alma::acs::logging::dialogs::main::LogFrame::loggingClient [private]
 

ShutdownHook alma::acs::logging::dialogs::main::LogFrame::shutdownHook [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:49 2009 for ACS Java API by doxygen 1.3.8