|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.nuiton.widget.ApplicationMonitor
public class ApplicationMonitor
| Nested Class Summary | |
|---|---|
protected class |
ApplicationMonitor.LogListener
|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JTextArea |
allStreamsTextArea
|
static int |
DEFAULT_FOOTER_LINE
nombre de ligne a conserver en fin des logs ex: stack trace si egal a -1 en meme temps que DEFAULT_HEADER_LINE alors tout le log est conservé |
static String |
DEFAULT_FROM_ADDRESS
|
static int |
DEFAULT_HEADER_LINE
nombre de ligne a conserver au debut des logs ex: param de lancement si egal a -1 en meme temps que DEFAULT_FOOTER_LINE alors tout le log est conservé |
static String |
DEFAULT_LOGGING_SYSTEM
|
static String |
DEFAULT_SMTP_SERVER
|
static String |
DEFAULT_TO_ADDRESS
|
protected JTextArea |
errorStreamTextArea
|
protected String |
from
|
protected JPanel |
jPanel
|
protected JPanel |
jPanel1
|
protected JPanel |
jPanel2
|
protected JPanel |
jPanel2bis
|
protected JPanel |
jPanel3
|
protected JPanel |
jPanel4
|
protected JPanel |
jPanel5
|
protected JPanel |
jPanel6
|
protected JScrollPane |
jScrollPane
|
protected JScrollPane |
jScrollPane1
|
protected JScrollPane |
jScrollPane2
|
protected JScrollPane |
jScrollPanebis
|
protected JTabbedPane |
jTabbedPane
|
protected String |
loggingSystem
|
protected ApplicationMonitor.LogListener |
logListener
|
protected JTextArea |
logStreamTextArea
|
protected JTextArea |
outputStreamTextArea
|
protected JButton |
resetButton
|
protected JButton |
sendByEmailButton
|
protected String |
smtpServer
|
protected StatusBar |
statusBar
|
protected PrintStream |
stderr
|
protected PrintStream |
stdout
|
protected String |
to
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ApplicationMonitor()
This is the default constructor |
|
ApplicationMonitor(String loggingSystem)
|
|
ApplicationMonitor(String loggingSystem,
String smtpServer,
String from,
String to)
|
|
| Method Summary | |
|---|---|
protected void |
ensureLine(JTextArea target)
ensure that the textarea does'nt have more than necessary line |
protected void |
finalize()
|
protected JTextArea |
getAllStreamsTextArea()
This method initializes allStreamsTextArea |
protected JTextArea |
getErrorStreamTextArea()
This method initializes jTextArea1 |
protected JPanel |
getJPanel()
This method initializes jPanel |
protected JPanel |
getJPanel1()
This method initializes jPanel1 |
protected JPanel |
getJPanel2()
This method initializes jPanel2 |
protected JPanel |
getJPanel2bis()
This method initializes jPanel2bis |
protected JPanel |
getJPanel3()
This method initializes jPanel3 |
protected JPanel |
getJPanel4()
This method initializes jPanel4 |
protected JPanel |
getJPanel5()
This method initializes jPanel5 |
protected JPanel |
getJPanel6()
This method initializes jPanel6 |
protected JScrollPane |
getJScrollPane()
This method initializes jScrollPane |
protected JScrollPane |
getJScrollPane1()
This method initializes jScrollPane1 |
protected JScrollPane |
getJScrollPane2()
This method initializes jScrollPane2 |
protected JScrollPane |
getJScrollPanebis()
This method initializes jScrollPanebis |
protected JTabbedPane |
getJTabbedPane()
This method initializes jTabbedPane |
protected JTextArea |
getLogStreamTextArea()
This method initializes jTextArea |
protected JTextArea |
getOutputStreamTextArea()
This method initializes jTextArea |
protected JButton |
getResetButton()
This method initializes jButton |
protected JButton |
getSendByEmailButton()
This method initializes jButton1 |
protected StatusBar |
getStatusBar()
|
protected void |
initialize()
|
protected void |
initializeLoggingHandler()
Set a logging handler up |
protected void |
initializeRedirect()
Sets new OutputStreams for System.out and System.err |
protected void |
initializeUI()
This method initializes UI |
static void |
main(String[] args)
|
void |
resetConsoleContent()
|
protected void |
send(String smtpServer,
String to,
String from,
String subject,
String body)
Send an email using the given informations (stmpServer, toAddress, fromAddress, subject and body). |
void |
sendConsoleContentByMail()
|
void |
setEmailFrom(String from)
|
void |
setEmailTo(String to)
|
void |
setSmtpServer(String smtpServer)
|
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int DEFAULT_HEADER_LINE
public static int DEFAULT_FOOTER_LINE
public static final String DEFAULT_LOGGING_SYSTEM
public static final String DEFAULT_SMTP_SERVER
public static final String DEFAULT_FROM_ADDRESS
public static final String DEFAULT_TO_ADDRESS
protected String loggingSystem
protected String smtpServer
protected String to
protected String from
protected PrintStream stdout
protected PrintStream stderr
protected ApplicationMonitor.LogListener logListener
protected JPanel jPanel
protected JPanel jPanel1
protected JButton resetButton
protected JButton sendByEmailButton
protected JTabbedPane jTabbedPane
protected JPanel jPanel2
protected JPanel jPanel2bis
protected JPanel jPanel3
protected JScrollPane jScrollPane
protected JScrollPane jScrollPanebis
protected JTextArea outputStreamTextArea
protected JTextArea allStreamsTextArea
protected JScrollPane jScrollPane1
protected JTextArea errorStreamTextArea
protected StatusBar statusBar
protected JPanel jPanel4
protected JScrollPane jScrollPane2
protected JTextArea logStreamTextArea
protected JPanel jPanel5
protected JPanel jPanel6
| Constructor Detail |
|---|
public ApplicationMonitor()
public ApplicationMonitor(String loggingSystem)
public ApplicationMonitor(String loggingSystem,
String smtpServer,
String from,
String to)
| Method Detail |
|---|
public void resetConsoleContent()
public void sendConsoleContentByMail()
public void setSmtpServer(String smtpServer)
smtpServer - the smtpServer to setpublic void setEmailTo(String to)
to - the to to setpublic void setEmailFrom(String from)
from - the from to setprotected void initialize()
protected void initializeRedirect()
protected void finalize()
throws Throwable
finalize in class ObjectThrowableprotected void initializeLoggingHandler()
protected void send(String smtpServer,
String to,
String from,
String subject,
String body)
throws javax.mail.internet.AddressException,
javax.mail.MessagingException
smtpServer - to - from - subject - body -
javax.mail.MessagingException
javax.mail.internet.AddressExceptionprotected void initializeUI()
protected JPanel getJPanel()
protected JPanel getJPanel1()
protected JButton getResetButton()
protected JButton getSendByEmailButton()
protected JTabbedPane getJTabbedPane()
protected JPanel getJPanel2bis()
protected JPanel getJPanel2()
protected JPanel getJPanel3()
protected JScrollPane getJScrollPanebis()
protected JScrollPane getJScrollPane()
protected JTextArea getAllStreamsTextArea()
protected JTextArea getOutputStreamTextArea()
protected JScrollPane getJScrollPane1()
protected JTextArea getErrorStreamTextArea()
protected JPanel getJPanel4()
protected JScrollPane getJScrollPane2()
protected JTextArea getLogStreamTextArea()
protected JPanel getJPanel5()
protected JPanel getJPanel6()
protected StatusBar getStatusBar()
protected void ensureLine(JTextArea target)
target - public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||