Class CountingFilter
java.lang.Object
kieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.filter.AbstractFilterPlugin
kieker.analysis.plugin.filter.forward.CountingFilter
- All Implemented Interfaces:
IAnalysisComponent
,IFilterPlugin
,IPlugin
@Deprecated public final class CountingFilter extends AbstractFilterPlugin
Deprecated.
since 1.15.1 old plugin api
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.
- Since:
- 1.4
- Author:
- Jan Waller, Nils Christian Ehmke
-
Nested Class Summary
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INPUT_PORT_NAME_EVENTS
Deprecated.The name of the input port receiving the incoming events.static java.lang.String
OUTPUT_PORT_NAME_COUNT
Deprecated.The name of the output port which delivers the current counter value.static java.lang.String
OUTPUT_PORT_NAME_RELAYED_EVENTS
Deprecated.The name of the output port passing the incoming events.Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
CONFIG_NAME, configuration, logger, projectContext, recordsTimeUnitFromProjectContext
-
Constructor Summary
Constructors Constructor Description CountingFilter(Configuration configuration, IProjectContext projectContext)
Deprecated.Creates a new instance of this class using the given parameters. -
Method Summary
Modifier and Type Method Description Configuration
getCurrentConfiguration()
Deprecated.This method should deliver aConfiguration
object containing the current configuration of this instance.long
getMessageCount()
Deprecated.Returns the number of objects received until now.boolean
init()
Deprecated.Initiates the start of a component.void
inputEvent(java.lang.Object event)
Deprecated.This method represents the input port of this filter.PlainText
plainTextDisplay()
Deprecated.Methods inherited from class kieker.analysis.plugin.AbstractPlugin
areAllRepositoryPortsConnected, connect, connect, deliver, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getDefaultConfiguration, getIncomingPlugins, getPluginDescription, getPluginName, getRepository, getState, isConnectionAllowed, notifyNewIncomingConnection, notifyNewOutgoingConnection, shutdown, start
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Details
-
INPUT_PORT_NAME_EVENTS
public static final java.lang.String INPUT_PORT_NAME_EVENTSDeprecated.The name of the input port receiving the incoming events.- See Also:
- Constant Field Values
-
OUTPUT_PORT_NAME_RELAYED_EVENTS
public static final java.lang.String OUTPUT_PORT_NAME_RELAYED_EVENTSDeprecated.The name of the output port passing the incoming events.- See Also:
- Constant Field Values
-
OUTPUT_PORT_NAME_COUNT
public static final java.lang.String OUTPUT_PORT_NAME_COUNTDeprecated.The name of the output port which delivers the current counter value.- See Also:
- Constant Field Values
-
-
Constructor Details
-
CountingFilter
Deprecated.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.
-
-
Method Details
-
getCurrentConfiguration
Deprecated.This method should deliver aConfiguration
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 interfaceIAnalysisComponent
- Specified by:
getCurrentConfiguration
in interfaceIPlugin
- Specified by:
getCurrentConfiguration
in classAbstractAnalysisComponent
- Returns:
- A completely filled configuration object.
-
getMessageCount
public final long getMessageCount()Deprecated.Returns the number of objects received until now.- Returns:
- The current counter value.
-
inputEvent
public final void inputEvent(java.lang.Object event)Deprecated.This method represents the input port of this filter.- Parameters:
event
- The next event.
-
init
public boolean init()Deprecated.Description copied from class:AbstractFilterPlugin
Initiates the start of a component. This method is called once when a AnalysisController's run() method is called. This implementation must not be blocking! Asynchronous consumers would spawn (an) asynchronous thread(s) in this method.- Specified by:
init
in interfaceIPlugin
- Overrides:
init
in classAbstractFilterPlugin
- Returns:
- true on success; false otherwise.
-
plainTextDisplay
Deprecated.
-