public final class CountingFilter extends AbstractFilterPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INPUT_PORT_NAME_EVENTS
The name of the input port receiving the incoming events.
|
static java.lang.String |
OUTPUT_PORT_NAME_COUNT
The name of the output port which delivers the current counter value.
|
static java.lang.String |
OUTPUT_PORT_NAME_RELAYED_EVENTS
The name of the output port passing the incoming events.
|
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext| Constructor and Description |
|---|
CountingFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getCurrentConfiguration()
This method should deliver a
Configuration object containing the current configuration of this instance. |
long |
getMessageCount()
Returns the number of objects received until now.
|
boolean |
init()
Initiates the start of a component.
|
void |
inputEvent(java.lang.Object event)
This method represents the input port of this filter.
|
PlainText |
plainTextDisplay() |
XYPlot |
xyPlotDisplay() |
terminateareAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, startgetNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getName, getPluginDescription, getPluginName, getStatepublic static final java.lang.String INPUT_PORT_NAME_EVENTS
public static final java.lang.String OUTPUT_PORT_NAME_RELAYED_EVENTS
public static final java.lang.String OUTPUT_PORT_NAME_COUNT
public CountingFilter(Configuration configuration, IProjectContext projectContext)
configuration - The configuration for this component.projectContext - The project context for this component.public final 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 IAnalysisComponentgetCurrentConfiguration in interface IPlugingetCurrentConfiguration in class AbstractAnalysisComponentpublic final long getMessageCount()
public final void inputEvent(java.lang.Object event)
event - The next event.public boolean init()
AbstractFilterPlugininit in interface IPlugininit in class AbstractFilterPluginpublic final PlainText plainTextDisplay()
public final XYPlot xyPlotDisplay()
Copyright 2020 Kieker Project, http://kieker-monitoring.net