se.sics.tasim.logtool
Class LogHandler

java.lang.Object
  extended by se.sics.tasim.logtool.LogHandler

public abstract class LogHandler
extends java.lang.Object

The abstract class LogHandler should be inherited by all implementations of log analyzers, viewers, etc, that uses the LogManager for the log file processing.


Constructor Summary
protected LogHandler()
           
 
Method Summary
 ConfigManager getConfig()
           
protected  LogManager getLogManager()
           
 java.io.File getTempDirectory(java.lang.String name)
           
protected  void init()
          Initializes the log handler.
protected  void sessionEnded()
           
protected  void sessionStarted()
           
protected abstract  void start(LogReader reader)
          Invoked when a new log file should be processed.
 void warn(java.lang.String warningMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogHandler

protected LogHandler()
Method Detail

getLogManager

protected LogManager getLogManager()

getConfig

public ConfigManager getConfig()

getTempDirectory

public java.io.File getTempDirectory(java.lang.String name)
                              throws java.io.IOException
Throws:
java.io.IOException

warn

public void warn(java.lang.String warningMessage)

init

protected void init()
Initializes the log handler.


sessionStarted

protected void sessionStarted()

sessionEnded

protected void sessionEnded()

start

protected abstract void start(LogReader reader)
                       throws IllegalConfigurationException,
                              java.io.IOException,
                              java.text.ParseException
Invoked when a new log file should be processed.

Parameters:
reader - the log reader for the log file.
Throws:
IllegalConfigurationException
java.io.IOException
java.text.ParseException


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.