クラス org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread

すべてのメンバ一覧

説明

This class defines a GuiLoggingThread

作者:
Nicolas Modrzyk
バージョン:
1.0

GuiLoggingThread.java45 行で定義されています。

Public メソッド

 GuiLoggingThread (JTextArea loggingTextPane, String host)
void run ()

Private 変数

Socket logSocket
SocketNode node
JTextArea loggingTextPane
String host


コンストラクタとデストラクタ

org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.GuiLoggingThread JTextArea  loggingTextPane,
String  host
 

Creates a new GuiLoggingThread.java object

引数:
loggingTextPane the text area where to store output
host where the log server is running
GuiLoggingThread.java58 行で定義されています。
00059 { 00060 super(); 00061 this.host = host; 00062 this.loggingTextPane = loggingTextPane; 00063 }


メソッド

void org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.run  ) 
 

参照:
java.lang.Runnable#run()
GuiLoggingThread.java68 行で定義されています。

参照先 org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.host, org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.loggingTextPane, org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.logSocket, と org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.node.

00069 { 00070 try 00071 { 00072 BasicConfigurator.configure(); 00073 JTextAreaWriter writer = new JTextAreaWriter(loggingTextPane); 00074 Layout layout = new PatternLayout("%d %-5p %c{3} %m\n"); 00075 WriterAppender appender = new WriterAppender(layout, writer); 00076 appender.setImmediateFlush(true); 00077 LogManager.getRootLogger().removeAllAppenders(); 00078 LogManager.getRootLogger().addAppender(appender); 00079 logSocket = new Socket(host, 9010); 00080 node = new SocketNode(logSocket, LogManager.getLoggerRepository()); 00081 new Thread(node).start(); 00082 } 00083 catch (Exception e) 00084 { 00085 // ignore 00086 } 00087 }


変数

String org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.host [private]
 

GuiLoggingThread.java50 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.run().

JTextArea org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.loggingTextPane [private]
 

GuiLoggingThread.java49 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.run().

Socket org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.logSocket [private]
 

GuiLoggingThread.java47 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.run().

SocketNode org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.node [private]
 

GuiLoggingThread.java48 行で定義されています。

参照元 org.objectweb.cjdbc.console.gui.threads.GuiLoggingThread.run().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:24 2004に生成されました。 doxygen 1.3.8