Kieker 1.12

kieker.tools.traceAnalysis.filter.flow
Class EventRecordTraceCounter

java.lang.Object
  extended by kieker.analysis.analysisComponent.AbstractAnalysisComponent
      extended by kieker.analysis.plugin.AbstractPlugin
          extended by kieker.analysis.plugin.filter.AbstractFilterPlugin
              extended by kieker.tools.traceAnalysis.filter.AbstractTraceAnalysisFilter
                  extended by kieker.tools.traceAnalysis.filter.AbstractTraceProcessingFilter
                      extended by kieker.tools.traceAnalysis.filter.flow.EventRecordTraceCounter
All Implemented Interfaces:
IAnalysisComponent, IFilterPlugin, IPlugin

public class EventRecordTraceCounter
extends AbstractTraceProcessingFilter

Counts and reports the number of incoming valid/invalid TraceEventRecords.

Since:
1.7
Author:
Andre van Hoorn

Nested Class Summary
 
Nested classes/interfaces inherited from interface kieker.analysis.plugin.IPlugin
IPlugin.PluginInputPortReference, IPlugin.STATE
 
Field Summary
static java.lang.String CONFIG_PROPERTY_NAME_LOG_INVALID
          This is the name of the configuration determining whether to log invalid traces or not.
static java.lang.String INPUT_PORT_NAME_INVALID
          This is the name of the input port receiving invalid record traces.
static java.lang.String INPUT_PORT_NAME_VALID
          This is the name of the input port receiving valid record traces.
 
Fields inherited from class kieker.tools.traceAnalysis.filter.AbstractTraceAnalysisFilter
CONFIG_PROPERTY_VALUE_VERBOSE, LOG, REPOSITORY_PORT_NAME_SYSTEM_MODEL
 
Fields inherited from class kieker.analysis.analysisComponent.AbstractAnalysisComponent
CONFIG_NAME, configuration, log, projectContext, recordsTimeUnitFromProjectContext
 
Constructor Summary
EventRecordTraceCounter(Configuration configuration, IProjectContext projectContext)
          Creates a new instance of this class using the given parameters.
 
Method Summary
 Configuration getCurrentConfiguration()
          This method should deliver a Configuration object containing the current configuration of this instance.
 void inputInvalidTrace(TraceEventRecords invalidTrace)
          This method represents the input port for the invalid traces.
 void inputValidTrace(TraceEventRecords validTrace)
          This method represents the input port for the valid traces.
 
Methods inherited from class kieker.tools.traceAnalysis.filter.AbstractTraceProcessingFilter
getErrorCount, getLastTraceIdError, getLastTraceIdSuccess, getSuccessCount, getTotalCount, printStatusMessage, reportError, reportSuccess
 
Methods inherited from class kieker.tools.traceAnalysis.filter.AbstractTraceAnalysisFilter
createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, createExecutionByEntityNames, getSystemEntityFactory, printDebugLogMessage, printErrorLogMessage
 
Methods inherited from class kieker.analysis.plugin.filter.AbstractFilterPlugin
init, terminate
 
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 kieker.analysis.analysisComponent.AbstractAnalysisComponent
getName
 
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 Detail

INPUT_PORT_NAME_VALID

public static final java.lang.String INPUT_PORT_NAME_VALID
This is the name of the input port receiving valid record traces.

See Also:
Constant Field Values

INPUT_PORT_NAME_INVALID

public static final java.lang.String INPUT_PORT_NAME_INVALID
This is the name of the input port receiving invalid record traces.

See Also:
Constant Field Values

CONFIG_PROPERTY_NAME_LOG_INVALID

public static final java.lang.String CONFIG_PROPERTY_NAME_LOG_INVALID
This is the name of the configuration determining whether to log invalid traces or not.

See Also:
Constant Field Values
Constructor Detail

EventRecordTraceCounter

public EventRecordTraceCounter(Configuration configuration,
                               IProjectContext projectContext)
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 Detail

getCurrentConfiguration

public Configuration getCurrentConfiguration()
Description copied from class: AbstractAnalysisComponent
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.

Specified by:
getCurrentConfiguration in interface IAnalysisComponent
Specified by:
getCurrentConfiguration in interface IPlugin
Overrides:
getCurrentConfiguration in class AbstractTraceAnalysisFilter
Returns:
A completely filled configuration object.

inputValidTrace

public void inputValidTrace(TraceEventRecords validTrace)
This method represents the input port for the valid traces.

Parameters:
validTrace - The next trace.

inputInvalidTrace

public void inputInvalidTrace(TraceEventRecords invalidTrace)
This method represents the input port for the invalid traces.

Parameters:
invalidTrace - The next trace.

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net