T
- The type of the list.public class ListCollectionFilter<T> extends AbstractFilterPlugin
Modifier and Type | Class and Description |
---|---|
static class |
ListCollectionFilter.ListFullBehavior
An enum for all possible list full behaviors.
|
IPlugin.PluginInputPortReference, IPlugin.STATE
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_PROPERTY_NAME_LIST_FULL_BEHAVIOR
The name of the property determining the behavior of a full list.
|
static java.lang.String |
CONFIG_PROPERTY_NAME_MAX_NUMBER_OF_ENTRIES
The name of the property determining the maximal number of allowed entries.
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_LIST_FULL_BEHAVIOR
The default value for the behavior of a full list (drop oldest).
|
static java.lang.String |
CONFIG_PROPERTY_VALUE_NUMBER_OF_ENTRIES
The default value for the maximal number of allowed entries (unlimited.
|
static java.lang.String |
INPUT_PORT_NAME
The name of the input port for the incoming objects.
|
static java.lang.String |
OUTPUT_PORT_NAME
The name of the output port for the forwarded objects.
|
CONFIG_NAME, configuration, log, LOG, projectContext, recordsTimeUnitFromProjectContext
Constructor and Description |
---|
ListCollectionFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the list.
|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
java.util.List<T> |
getList()
Delivers a copy of the internal list.
|
void |
input(T data)
This method represents the input port.
|
int |
size() |
init, terminate
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getState
public static final java.lang.String INPUT_PORT_NAME
public static final java.lang.String OUTPUT_PORT_NAME
public static final java.lang.String CONFIG_PROPERTY_NAME_MAX_NUMBER_OF_ENTRIES
public static final java.lang.String CONFIG_PROPERTY_VALUE_NUMBER_OF_ENTRIES
public static final java.lang.String CONFIG_PROPERTY_NAME_LIST_FULL_BEHAVIOR
public static final java.lang.String CONFIG_PROPERTY_VALUE_LIST_FULL_BEHAVIOR
public ListCollectionFilter(Configuration configuration, IProjectContext projectContext)
configuration
- The configuration for this component.projectContext
- The project context for this component.public void input(T data)
data
- The next element.public void clear()
public java.util.List<T> getList()
public int size()
public Configuration getCurrentConfiguration()
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.getCurrentConfiguration
in interface IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractAnalysisComponent
Copyright 2017 Kieker Project, http://kieker-monitoring.net