Kieker 1.2

kieker.analysis.reader.filesystem
Class FSReader

java.lang.Object
  extended by kieker.analysis.reader.AbstractMonitoringLogReader
      extended by kieker.analysis.reader.filesystem.FSReader
All Implemented Interfaces:
IMonitoringLogReader

public class FSReader
extends AbstractMonitoringLogReader

Filesystem reader which reads from multiple directories simultaneously ordered by the logging timestamp.

Author:
Andre van Hoorn

Field Summary
static String PROP_NAME_INPUTDIRS
           
 
Constructor Summary
FSReader()
          Default constructor used for construction by reflection.
FSReader(String[] inputDirs)
           
 
Method Summary
 void init(String initString)
          Initialize instance from passed initialization string which is typically a list of separated parameter/values pairs.
 boolean read()
          Starts the reader.
 
Methods inherited from class kieker.analysis.reader.AbstractMonitoringLogReader
addRecordReceiver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_NAME_INPUTDIRS

public static final String PROP_NAME_INPUTDIRS
See Also:
Constant Field Values
Constructor Detail

FSReader

public FSReader(String[] inputDirs)

FSReader

public FSReader()
Default constructor used for construction by reflection.

Method Detail

read

public boolean read()
             throws MonitoringLogReaderException
Description copied from interface: IMonitoringLogReader
Starts the reader. This method is intended to be a blocking operation, i.e., it is assumed that reading has finished before this method returns.

Returns:
true iff reading was successful
Throws:
MonitoringLogReaderException

init

public void init(String initString)
          throws IllegalArgumentException
Description copied from interface: IMonitoringLogReader
Initialize instance from passed initialization string which is typically a list of separated parameter/values pairs. The implementing class AbstractMonitoringLogWriter includes convenient methods to extract configuration values from an initString. TODO: make signature of this init method and the writer's init method (returns boolean and doesn't throw exception) consistent.

Parameters:
initString - List of input directories separated by semicolon
Throws:
IllegalArgumentException - if an error occured

Kieker 1.2

Copyright 2010 the Kieker Project, http://kieker.sourceforge.net