|
Log4JMonitor v1.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--javax.swing.JFrame | +--org.alltimeflashdreamer.log4jmonitor.Log4JMonitor
Title: Log4JMonitor
Description: This is the application window and the main class of the Log4JMonitor application.
It serves as a SocketServer for the Log4J remote logging service and is therefore able to show
Log4J messages from somewhere in the network that sends such messages to the localhost.
The received messages are listed in the application's JTable and rendered according to their
relevance and type.
Inner classes inherited from class javax.swing.JFrame |
JFrame.AccessibleJFrame |
Inner classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Field Summary | |
(package private) static String |
TITLE
the title of the application, shown in the title bar of the main window |
(package private) static String |
VERSION
the version number of the application |
Fields inherited from class javax.swing.JFrame |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Window |
inputContext, OPENED, ownedWindowList, state, warningString, windowListener |
Fields inherited from class java.awt.Container |
component, containerListener, layoutMgr, listeningBoundsChildren, listeningChildren, ncomponents |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
Log4JMonitor()
The constructor initializes the Log4J and some often used GUI components and calls the buildGUI method, catching possibly upcoming exceptions. Finally, a Thread is started which accepts SocketConnections (on port 27272 by default, if not overwritten by setting the JVM's "log4jmonitor.port" property), sent by a SocketAppender (as defined in the related log4j.properties file). |
Method Summary | |
void |
actionPerformed(ActionEvent event)
The actionPerformed method handles the action events that come up by user actions. |
static void |
main(String[] args)
The main method starts the control monitor. |
void |
windowActivated(WindowEvent event)
(inactive) |
void |
windowClosed(WindowEvent event)
(inactive) |
void |
windowClosing(WindowEvent event)
Exits the virtual machine silently. |
void |
windowDeactivated(WindowEvent event)
(inactive) |
void |
windowDeiconified(WindowEvent event)
(inactive) |
void |
windowIconified(WindowEvent event)
(inactive) |
void |
windowOpened(WindowEvent event)
Sets the table's column widths accordingly. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
static final String VERSION
static final String TITLE
Constructor Detail |
public Log4JMonitor() throws Exception
Exception
- wrapper for any possible exception that may occur
and isn't handled within the method itselfServerSocket
,
SocketAppender
Method Detail |
public static void main(String[] args)
args
- the command line argumentspublic void windowClosing(WindowEvent event)
windowClosing
in interface WindowListener
event
- the window event to handlepublic void windowOpened(WindowEvent event)
windowOpened
in interface WindowListener
event
- the window event to handlepublic void windowClosed(WindowEvent event)
windowClosed
in interface WindowListener
event
- the window event to handlepublic void windowIconified(WindowEvent event)
windowIconified
in interface WindowListener
event
- the window event to handlepublic void windowDeiconified(WindowEvent event)
windowDeiconified
in interface WindowListener
event
- the window event to handlepublic void windowActivated(WindowEvent event)
windowActivated
in interface WindowListener
event
- the window event to handlepublic void windowDeactivated(WindowEvent event)
windowDeactivated
in interface WindowListener
event
- the window event to handlepublic void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- the action event to handle
|
Copyright (c) 1999/2000 by apache.org, 2001/02 by Sven Mosimann, Adrian Seiler and Florian Steinsiepe | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |