org.jscience.util.logging
Class SocketLogListener

java.lang.Object
  extended by org.jscience.util.logging.SocketLogListener
All Implemented Interfaces:
NetConnectionHandler

public class SocketLogListener
extends java.lang.Object
implements NetConnectionHandler

used to listen to LogEntry objects send through a NetConnection. The NetConnectionServer must be started before use.


Constructor Summary
SocketLogListener(int port, Logger logger)
          Creates a new SocketLogListener object.
 
Method Summary
 void connectionLost(NetConnection con)
          DOCUMENT ME!
 NetConnectionServer getNetConnectionServer()
          DOCUMENT ME!
 void handleMessage(java.lang.Object message, NetConnection con)
          DOCUMENT ME!
 void start()
          DOCUMENT ME!
 void stop()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketLogListener

public SocketLogListener(int port,
                         Logger logger)
                  throws java.io.IOException
Creates a new SocketLogListener object.

Parameters:
port - DOCUMENT ME!
logger - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
Method Detail

getNetConnectionServer

public NetConnectionServer getNetConnectionServer()
DOCUMENT ME!

Returns:
DOCUMENT ME!

start

public void start()
DOCUMENT ME!


stop

public void stop()
DOCUMENT ME!


connectionLost

public void connectionLost(NetConnection con)
DOCUMENT ME!

Specified by:
connectionLost in interface NetConnectionHandler
Parameters:
con - DOCUMENT ME!

handleMessage

public void handleMessage(java.lang.Object message,
                          NetConnection con)
DOCUMENT ME!

Specified by:
handleMessage in interface NetConnectionHandler
Parameters:
message - DOCUMENT ME!
con - DOCUMENT ME!