campus
Class LogTracer
java.lang.Object
|
+--campus.LogTracer
- public class LogTracer
- extends java.lang.Object
A tracer that outputs raw log messages from STDIN or a log file,
roughly respecting the timestamp. It can be a standalone application
or an embedded engine. The first field of input is expected to be
timestamp in seconds and the field separator is tab.
- Version:
- $Id: LogTracer.java,v 1.2 2003/09/16 03:41:39 glchen Exp $
- Author:
- Guanling Chen
Constructor Summary |
LogTracer(serp.util.Options opts)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_in
private java.io.BufferedReader _in
_observer
private LogTracer.TracerObserver _observer
_clock
private long _clock
_tstamp
private long _tstamp
LogTracer
public LogTracer(serp.util.Options opts)
throws java.lang.Exception
setObserver
public void setObserver(LogTracer.TracerObserver ob)
run
public void run()
throws java.lang.Exception
java.lang.Exception
processOneLine
private void processOneLine(java.lang.String line)
throws java.lang.Exception
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception