|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.apache.log4j.spi.ComponentBase
org.apache.log4j.net.SocketNode13
public class SocketNode13
Read LoggingEvent
objects sent from a remote client using
Sockets (TCP). These logging events are logged according to local
policy, as if they were generated locally.
For example, the socket node might decide to log events to a local file and also resent them to a second socket node. Implementation lifted from org.apache.log4j.net.SocketNode in log4j 1.3 and renamed to prevent collision with log4j 1.2 implementation.
フィールドの概要 |
---|
クラス org.apache.log4j.spi.ComponentBase から継承されたフィールド |
---|
repository |
コンストラクタの概要 | |
---|---|
SocketNode13(java.net.Socket s,
org.apache.log4j.spi.LoggerRepository hierarchy)
Constructor for socket and logger repository. |
|
SocketNode13(java.net.Socket s,
org.apache.log4j.plugins.Receiver r)
Constructor for socket and receiver. |
メソッドの概要 | |
---|---|
void |
addSocketNodeEventListener(SocketNodeEventListener listener)
Adds the listener to the list of listeners to be notified of the respective event. |
void |
close()
Close the node and underlying socket |
boolean |
isClosed()
Get if node is closed. |
boolean |
isPaused()
Get if node is paused. |
void |
removeSocketNodeEventListener(SocketNodeEventListener listener)
Removes the registered Listener from this instances list of listeners. |
void |
run()
Deserialize events from socket until interrupted. |
void |
setListener(SocketNodeEventListener l)
推奨されていません。 Now supports mutliple listeners, this method simply invokes the removeSocketNodeEventListener() to remove the listener, and then readds it. |
void |
setPaused(boolean b)
Sets if node is paused. |
クラス org.apache.log4j.spi.ComponentBase から継承されたメソッド |
---|
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public SocketNode13(java.net.Socket s, org.apache.log4j.spi.LoggerRepository hierarchy)
s
- sockethierarchy
- logger repositorypublic SocketNode13(java.net.Socket s, org.apache.log4j.plugins.Receiver r)
s
- socketr
- receiverメソッドの詳細 |
---|
public void setListener(SocketNodeEventListener l)
l
- listenerpublic void addSocketNodeEventListener(SocketNodeEventListener listener)
listener
- the listener to add to the listpublic void removeSocketNodeEventListener(SocketNodeEventListener listener)
listener
- the SocketNodeEventListener to removepublic void run()
java.lang.Runnable
内の run
public void setPaused(boolean b)
org.apache.log4j.plugins.Pauseable
内の setPaused
b
- new valuepublic boolean isPaused()
org.apache.log4j.plugins.Pauseable
内の isPaused
public void close() throws java.io.IOException
java.io.IOException
public boolean isClosed()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |