Kieker 1.3

kieker.analysis.reader
Class DummyLogReader

java.lang.Object
  extended by kieker.analysis.reader.AbstractMonitoringReader
      extended by kieker.analysis.reader.DummyLogReader
All Implemented Interfaces:
IMonitoringReader

public class DummyLogReader
extends AbstractMonitoringReader

This is a logReader for testing. It creates just some random data. All have the same operation and component and some random wait time of approx. a second. It never terminates.

Author:
matthias

Constructor Summary
DummyLogReader()
           
 
Method Summary
 boolean 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.AbstractMonitoringReader
addRecordReceiver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLogReader

public DummyLogReader()
Method Detail

read

public boolean read()
Description copied from interface: IMonitoringReader
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. The method should indicate an error by the return value false.

Returns:
true if reading was successful; false if an error occurred

init

public boolean init(String initString)
             throws IllegalArgumentException
Description copied from interface: IMonitoringReader
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.

Parameters:
initString - the initialization string
Returns:
true if the initialization was successful; false if an error occurred
Throws:
IllegalArgumentException

Kieker 1.3

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