Kieker 1.5

kieker.analysis.plugin.filter.forward
Class TeeFilter

java.lang.Object
  extended by kieker.analysis.plugin.AbstractPlugin
      extended by kieker.analysis.plugin.filter.AbstractFilterPlugin
          extended by kieker.analysis.plugin.filter.forward.TeeFilter
All Implemented Interfaces:
IFilterPlugin, IPlugin

public final class TeeFilter
extends AbstractFilterPlugin

This filter has exactly one input port and one output port. A simple message is printed to a configurable stream and all objects are forwarded to the output port.

Author:
Matthias Rohr, Jan Waller

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference
 
Field Summary
static String CONFIG_PROPERTY_NAME_ENCODING
           
static String CONFIG_PROPERTY_NAME_STREAM
           
static String CONFIG_PROPERTY_VALUE_DEFAULT_ENCODING
           
static String CONFIG_PROPERTY_VALUE_STREAM_STDERR
           
static String CONFIG_PROPERTY_VALUE_STREAM_STDLOG
           
static String CONFIG_PROPERTY_VALUE_STREAM_STDOUT
           
static String INPUT_PORT_NAME_EVENTS
           
static String OUTPUT_PORT_NAME_RELAYED_EVENTS
           
 
Fields inherited from class kieker.analysis.plugin.AbstractPlugin
CONFIG_NAME
 
Constructor Summary
TeeFilter(Configuration configuration)
           
 
Method Summary
 Configuration getCurrentConfiguration()
          This method should deliver a Configuration object containing the current configuration of this instance.
 void inputEvent(Object object)
           
 void terminate(boolean error)
          Initiates a termination of the component.
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
init
 
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

INPUT_PORT_NAME_EVENTS

public static final String INPUT_PORT_NAME_EVENTS
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_STREAM

public static final String CONFIG_PROPERTY_NAME_STREAM
See Also:
Constant Field Values

CONFIG_PROPERTY_NAME_ENCODING

public static final String CONFIG_PROPERTY_NAME_ENCODING
See Also:
Constant Field Values

CONFIG_PROPERTY_VALUE_STREAM_STDOUT

public static final String CONFIG_PROPERTY_VALUE_STREAM_STDOUT
See Also:
Constant Field Values

CONFIG_PROPERTY_VALUE_STREAM_STDERR

public static final String CONFIG_PROPERTY_VALUE_STREAM_STDERR
See Also:
Constant Field Values

CONFIG_PROPERTY_VALUE_STREAM_STDLOG

public static final String CONFIG_PROPERTY_VALUE_STREAM_STDLOG
See Also:
Constant Field Values

CONFIG_PROPERTY_VALUE_DEFAULT_ENCODING

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

TeeFilter

public TeeFilter(Configuration configuration)
Method Detail

terminate

public final void terminate(boolean error)
Description copied from interface: IFilterPlugin
Initiates a termination of the component. The value of the parameter error indicates whether an error occurred.

Specified by:
terminate in interface IFilterPlugin
Overrides:
terminate in class AbstractFilterPlugin
Parameters:
error - true iff an error occurred.

getCurrentConfiguration

public final 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.

inputEvent

public final void inputEvent(Object object)

Kieker 1.5

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