|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.log4j.spi.ComponentBase
org.apache.log4j.net.SocketNode
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.
Field Summary |
Fields inherited from class org.apache.log4j.spi.ComponentBase |
repository |
Constructor Summary | |
SocketNode(Socket socket,
LoggerRepository hierarchy)
Constructor for socket and logger repository. |
|
SocketNode(Socket socket,
Receiver receiver)
Constructor for socket and reciever. |
Method Summary | |
void |
addSocketNodeEventListener(SocketNodeEventListener listener)
Adds the listener to the list of listeners to be notified of the respective event |
boolean |
isPaused()
|
void |
removeSocketNodeEventListener(SocketNodeEventListener listener)
Removes the registered Listener from this instances list of listeners. |
void |
run()
|
void |
setListener(SocketNodeEventListener _listener)
Deprecated. Now supports mutliple listeners, this method simply invokes the removeSocketNodeEventListener() to remove the listener, and then readds it. |
void |
setPaused(boolean paused)
|
Methods inherited from class org.apache.log4j.spi.ComponentBase |
getLogger, getLoggerRepository, getNonFloodingLogger, resetErrorCount, setLoggerRepository |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SocketNode(Socket socket, LoggerRepository hierarchy)
public SocketNode(Socket socket, Receiver receiver)
Method Detail |
public void setListener(SocketNodeEventListener _listener)
public void addSocketNodeEventListener(SocketNodeEventListener listener)
listener
- the listener to add to the listpublic void removeSocketNodeEventListener(SocketNodeEventListener listener)
listener
- the SocketNodeEventListener to removepublic void run()
run
in interface Runnable
public void setPaused(boolean paused)
setPaused
in interface Pauseable
public boolean isPaused()
isPaused
in interface Pauseable
|
Log4j 1.3alpha-7 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |