rabbit.proxy
Class ProxyLogger

java.lang.Object
  extended by rabbit.proxy.ProxyLogger
All Implemented Interfaces:
ConnectionLogger

public class ProxyLogger
extends Object
implements ConnectionLogger

A class to handle proxy logging.

Author:
Robert Olofsson

Constructor Summary
ProxyLogger()
          Create a new ProxyLogger.
 
Method Summary
 long getOffset()
          Get the distance to GMT in millis.
 void logConnection(Connection con)
          Log a finished connection.
 void setup(SProperties config)
          Configure this logger from the given properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyLogger

public ProxyLogger()
Create a new ProxyLogger.

Method Detail

getOffset

public long getOffset()
Get the distance to GMT in millis.

Returns:
the time offset

setup

public void setup(SProperties config)
           throws IOException
Configure this logger from the given properties

Parameters:
config - the properties to use for configuration.
Throws:
IOException - if logging setup fails

logConnection

public void logConnection(Connection con)
Description copied from interface: ConnectionLogger
Log a finished connection.

Specified by:
logConnection in interface ConnectionLogger
Parameters:
con - the Connection that has finished one operation.