|
Kieker 1.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.analysis.analysisComponent.AbstractAnalysisComponent
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.filter.AbstractFilterPlugin
kieker.analysis.plugin.filter.forward.CountingFilter
public final class CountingFilter
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin |
|---|
IPlugin.PluginInputPortReference, IPlugin.STATE |
| Field Summary | |
|---|---|
static String |
INPUT_PORT_NAME_EVENTS
The name of the input port receiving the incoming events. |
static String |
OUTPUT_PORT_NAME_COUNT
The name of the output port which delivers the current counter value. |
static String |
OUTPUT_PORT_NAME_RELAYED_EVENTS
The name of the output port passing the incoming events. |
| Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent |
|---|
CONFIG_NAME |
| Constructor Summary | |
|---|---|
CountingFilter(Configuration configuration)
Deprecated. To be removed in Kieker 1.8. |
|
CountingFilter(Configuration configuration,
IProjectContext projectContext)
Creates a new instance of this class using the given parameters. |
|
| Method Summary | |
|---|---|
void |
countDisplay(PlainText plainText)
This method is being used to display the currently stored value within this counter. |
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. |
long |
getMessageCount()
Returns the number of objects received until now. |
void |
inputEvent(Object event)
This method represents the input port of this filter. |
| 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 |
|---|
public static final String INPUT_PORT_NAME_EVENTS
public static final String OUTPUT_PORT_NAME_RELAYED_EVENTS
public static final String OUTPUT_PORT_NAME_COUNT
| Constructor Detail |
|---|
public CountingFilter(Configuration configuration,
IProjectContext projectContext)
configuration - The configuration for this component.projectContext - The project context for this component.@Deprecated public CountingFilter(Configuration configuration)
configuration - The configuration for this component.| Method Detail |
|---|
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(Object event)
event - The next event.public final void countDisplay(PlainText plainText)
PlainText.
plainText - The text object to be filled with the current counter value.
|
Kieker 1.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||