Kieker 1.7

kieker.analysis.plugin.filter.forward
Class ListCollectionFilter<T>

java.lang.Object
  extended by kieker.analysis.analysisComponent.AbstractAnalysisComponent
      extended by kieker.analysis.plugin.AbstractPlugin
          extended by kieker.analysis.plugin.filter.AbstractFilterPlugin
              extended by kieker.analysis.plugin.filter.forward.ListCollectionFilter<T>
Type Parameters:
T - The type of the list.
All Implemented Interfaces:
IAnalysisComponent, IFilterPlugin, IPlugin

public class ListCollectionFilter<T>
extends AbstractFilterPlugin

This filter collects the incoming objects in a simple synchronized list. It is mostly used for test purposes.

Since:
1.6
Author:
Nils Ehmke, Jan Waller

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
 
Field Summary
static String INPUT_PORT_NAME
          The name of the input port for the incoming objects.
static String OUTPUT_PORT_NAME
          The name of the output port for the forwared objects.
 
Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
CONFIG_NAME
 
Constructor Summary
ListCollectionFilter(Configuration configuration)
          Deprecated. To be removed in Kieker 1.8.
ListCollectionFilter(Configuration configuration, IProjectContext projectContext)
          Creates a new instance of this class using the given parameters.
 
Method Summary
 void clear()
          Clears the list.
 Configuration getCurrentConfiguration()
          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.
 List<T> getList()
           
 void input(Object data)
          This method represents the input port.
 int size()
           
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
init, terminate
 
Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getIncomingPlugins, getPluginDescription, getPluginName, getState, isConnectionAllowed, shutdown, start
 
Methods inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
getName, setProjectContext
 
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, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
 

Field Detail

INPUT_PORT_NAME

public static final String INPUT_PORT_NAME
The name of the input port for the incoming objects.

See Also:
Constant Field Values

OUTPUT_PORT_NAME

public static final String OUTPUT_PORT_NAME
The name of the output port for the forwared objects.

See Also:
Constant Field Values
Constructor Detail

ListCollectionFilter

public ListCollectionFilter(Configuration configuration,
                            IProjectContext projectContext)
Creates a new instance of this class using the given parameters.

Parameters:
configuration - The configuration for this component.
projectContext - The project context for this component.

ListCollectionFilter

@Deprecated
public ListCollectionFilter(Configuration configuration)
Deprecated. To be removed in Kieker 1.8.

Creates a new instance of this class using the given parameters.

Parameters:
configuration - The configuration for this component.
Method Detail

input

public void input(Object data)
This method represents the input port.

Parameters:
data - The next element.

clear

public void clear()
Clears the list.


getList

public List<T> getList()

size

public int size()
Returns:
The current number of collected objects.

getCurrentConfiguration

public Configuration getCurrentConfiguration()
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.

Specified by:
getCurrentConfiguration in interface IAnalysisComponent
Specified by:
getCurrentConfiguration in interface IPlugin
Specified by:
getCurrentConfiguration in class AbstractAnalysisComponent
Returns:
A completely filled configuration object.

Kieker 1.7

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