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, log, LOG, 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() |
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_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 IAnalysisComponent
getCurrentConfiguration
in interface IPlugin
getCurrentConfiguration
in class AbstractAnalysisComponent
public final long getMessageCount()
public final void inputEvent(java.lang.Object event)
event
- The next event.public boolean init()
AbstractFilterPlugin
init
in interface IPlugin
init
in class AbstractFilterPlugin
public final PlainText plainTextDisplay()
public final XYPlot xyPlotDisplay()
Copyright 2017 Kieker Project, http://kieker-monitoring.net