Kieker 1.5

kieker.tools.logReplayer
Class FSReaderRealtime

java.lang.Object
  extended by kieker.analysis.plugin.AbstractPlugin
      extended by kieker.analysis.plugin.reader.AbstractReaderPlugin
          extended by kieker.tools.logReplayer.FSReaderRealtime
All Implemented Interfaces:
IPlugin, IReaderPlugin

public final class FSReaderRealtime
extends AbstractReaderPlugin

Author:
Andre van Hoorn

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference
 
Field Summary
static String CONFIG_PROPERTY_NAME_INPUTDIRNAMES
           
static String CONFIG_PROPERTY_NAME_NUM_WORKERS
           
static String OUTPUT_PORT_NAME_MONITORING_RECORDS
           
 
Fields inherited from class kieker.analysis.plugin.AbstractPlugin
CONFIG_NAME
 
Constructor Summary
FSReaderRealtime(Configuration configuration)
          Creates a new instance of this class using the given parameters to configure the reader.
 
Method Summary
 Configuration getCurrentConfiguration()
          This method should deliver a Configuration object containing the current configuration of this instance.
 boolean read()
          Replays the monitoring log in real-time and returns after the complete log was being replayed.
 void terminate(boolean error)
          Initiates a termination of the reader.
 
Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, getAllInputPortNames, getAllOutputPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, isConnectionAllowed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_PORT_NAME_MONITORING_RECORDS

public static final String OUTPUT_PORT_NAME_MONITORING_RECORDS
See Also:
Constant Field Values

CONFIG_PROPERTY_NAME_NUM_WORKERS

public static final String CONFIG_PROPERTY_NAME_NUM_WORKERS
See Also:
Constant Field Values

CONFIG_PROPERTY_NAME_INPUTDIRNAMES

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

FSReaderRealtime

public FSReaderRealtime(Configuration configuration)
Creates a new instance of this class using the given parameters to configure the reader.

Parameters:
configuration - The configuration used to initialize the whole reader. Keep in mind that the configuration should contain the following properties:
  • The property inputDirNames, e.g. INPUTDIRECTORY1;...;INPUTDIRECTORYN
  • The property numWorkers
Method Detail

read

public boolean read()
Replays the monitoring log in real-time and returns after the complete log was being replayed.

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

terminate

public void terminate(boolean error)
Description copied from interface: IReaderPlugin
Initiates a termination of the reader. This method is only used by the framework and should not be called manually to register a receiver. Use the method AnalysisController.terminate(boolean) instead. After receiving this notification, the reader should terminate its IReaderPlugin.read() method.


getCurrentConfiguration

public Configuration getCurrentConfiguration()
Description copied from interface: IPlugin
This method should deliver a Configuration object containing the current configuration of this instance. In other words: The constructor should be able to use the given object to initialize a new instance of this class with the same intern properties.

Returns:
A completely filled configuration object.

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net