Kieker 1.5

kieker.analysis.plugin.filter.forward
Class CountingFilter

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

public final class CountingFilter
extends AbstractFilterPlugin

An instance of this class receives any objects, increments an intern tread-safe counter without printing any message and delivers the unchanged objects to the output. The value of the counter can be retrieved by connected to the respective output port using a corresponding method.

Author:
Jan Waller

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference
 
Field Summary
static String INPUT_PORT_NAME_EVENTS
           
static String OUTPUT_PORT_NAME_COUNT
           
static String OUTPUT_PORT_NAME_RELAYED_EVENTS
           
 
Fields inherited from class kieker.analysis.plugin.AbstractPlugin
CONFIG_NAME
 
Constructor Summary
CountingFilter(Configuration configuration)
          Constructs a CountingFilter.
 
Method Summary
 Configuration getCurrentConfiguration()
          This method should deliver a Configuration object containing the current configuration of this instance.
 long getMessageCount()
           
 void inputEvent(Object event)
           
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
init, terminate
 
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

OUTPUT_PORT_NAME_COUNT

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

CountingFilter

public CountingFilter(Configuration configuration)
Constructs a CountingFilter.

Method Detail

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.

getMessageCount

public final long getMessageCount()

inputEvent

public final void inputEvent(Object event)

Kieker 1.5

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