|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.util.logging.SocketLogListener
public class SocketLogListener
used to listen to LogEntry objects send through a NetConnection. The NetConnectionServer must be started before use.
| Constructor Summary | |
|---|---|
SocketLogListener(int port,
Logger logger)
|
|
SocketLogListener(int port,
Logger logger,
boolean logInternals)
|
|
| Method Summary | |
|---|---|
void |
connectionLost(NetConnection con)
called when a connection caused an IOException during reading or writing; the connection may not have been closed at this point. |
Logger |
getLogger()
|
NetConnectionServer |
getNetConnectionServer()
|
void |
handleMessage(Object message,
NetConnection con)
called when a message is received by the given NetConnection object |
boolean |
isLoggingInternals()
if true, all connection related internal messages are logged as well |
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketLogListener(int port,
Logger logger)
throws IOException
IOException
public SocketLogListener(int port,
Logger logger,
boolean logInternals)
throws IOException
logInternals - if true, all connection related internal messages are logged as well
IOException| Method Detail |
|---|
public boolean isLoggingInternals()
public NetConnectionServer getNetConnectionServer()
public Logger getLogger()
public void start()
public void stop()
public void connectionLost(NetConnection con)
NetConnectionHandler
connectionLost in interface NetConnectionHandler
public void handleMessage(Object message,
NetConnection con)
NetConnectionHandler
handleMessage in interface NetConnectionHandler
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||