class LoggingReceiver
extends java.lang.Thread
org.apache.log4j.net.SocketAppender.html.| Modifier and Type | Class and Description |
|---|---|
private class |
LoggingReceiver.Slurper
Helper that actually processes a client connection.
|
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOG
used to log messages
|
private MyTableModel |
mModel
where to put the events
|
private java.net.ServerSocket |
mSvrSock
server for listening for connections
|
| Constructor and Description |
|---|
LoggingReceiver(MyTableModel aModel,
int aPort)
Creates a new
LoggingReceiver instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Listens for client connections
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate static final Logger LOG
private MyTableModel mModel
private java.net.ServerSocket mSvrSock
LoggingReceiver(MyTableModel aModel, int aPort) throws java.io.IOException
LoggingReceiver instance.aModel - model to place put received intoaPort - port to listen onjava.io.IOException - if an error occurs