Kieker 1.6

kieker.tools.logReplayer
Class MonitoringRecordLoggerFilter

java.lang.Object
  extended by kieker.analysis.plugin.AbstractPlugin
      extended by kieker.analysis.plugin.filter.AbstractFilterPlugin
          extended by kieker.tools.logReplayer.MonitoringRecordLoggerFilter
All Implemented Interfaces:
IFilterPlugin, IPlugin

public class MonitoringRecordLoggerFilter
extends AbstractFilterPlugin

Passes IMonitoringRecords received via its input port INPUT_PORT_NAME_RECORD to its own IMonitoringController instance, which is created based on the Configuration file passed via the filter's property CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN. Additionally, incoming records are relayed via the output port OUTPUT_PORT_NAME_RELAYED_EVENTS.

Author:
Andre van Hoorn

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
 
Field Summary
static String CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN
           
static String INPUT_PORT_NAME_RECORD
           
static String OUTPUT_PORT_NAME_RELAYED_EVENTS
           
 
Fields inherited from class kieker.analysis.plugin.AbstractPlugin
CONFIG_NAME
 
Constructor Summary
MonitoringRecordLoggerFilter(Configuration configuration)
           
 
Method Summary
 Configuration getCurrentConfiguration()
          This method should deliver a Configuration object containing the current configuration of this instance.
 void inputIMonitoringRecord(IMonitoringRecord record)
           
 void terminate(boolean error)
          Initiates a termination of the plugin.
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
init
 
Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getIncomingPlugins, getName, getPluginDescription, getPluginName, getState, isConnectionAllowed, shutdown, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kieker.analysis.plugin.IPlugin
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
 

Field Detail

INPUT_PORT_NAME_RECORD

public static final String INPUT_PORT_NAME_RECORD
See Also:
Constant Field Values

OUTPUT_PORT_NAME_RELAYED_EVENTS

public static final String OUTPUT_PORT_NAME_RELAYED_EVENTS
See Also:
Constant Field Values

CONFIG_PROPERTY_NAME_MONITORING_PROPS_FN

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

MonitoringRecordLoggerFilter

public MonitoringRecordLoggerFilter(Configuration configuration)
Method Detail

terminate

public void terminate(boolean error)
Description copied from interface: IPlugin
Initiates a termination of the plugin. This method is only used by the framework and should not be called manually. Use the method AnalysisController.terminate(boolean) instead. After receiving this notification, the plugin should terminate any running methods, e.g., read for readers.

Specified by:
terminate in interface IPlugin
Overrides:
terminate in class AbstractFilterPlugin

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.

inputIMonitoringRecord

public final void inputIMonitoringRecord(IMonitoringRecord record)

Kieker 1.6

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