org.vrspace.server
Class RequestLog

java.lang.Object
  extended byorg.vrspace.server.RequestLog
All Implemented Interfaces:
java.lang.Runnable

public class RequestLog
extends java.lang.Object
implements java.lang.Runnable

Request log class, inteded not only for statistics but as transaction log.

See Also:
Checkpoint

Constructor Summary
RequestLog(java.lang.String file)
          Creates new RequestLog, writing to file
 
Method Summary
protected  void flush()
          Flush the log
protected static void logRequest(Request r)
          Adds new request to the RequestLog
protected  void restart()
          Start new log
 void run()
          internaly used for asyncronous log writing
protected  void stop()
          Stops the logging
 java.lang.String toString()
          Returns String representation of RequestLog, using Request.toString() Called by flush()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestLog

public RequestLog(java.lang.String file)
           throws java.io.IOException
Creates new RequestLog, writing to file

Method Detail

logRequest

protected static void logRequest(Request r)
Adds new request to the RequestLog


toString

public java.lang.String toString()
Returns String representation of RequestLog, using Request.toString() Called by flush()


stop

protected void stop()
Stops the logging


flush

protected void flush()
              throws java.io.IOException
Flush the log

Throws:
java.io.IOException

restart

protected void restart()
                throws java.io.IOException
Start new log

Throws:
java.io.IOException

run

public void run()
internaly used for asyncronous log writing

Specified by:
run in interface java.lang.Runnable