kieker.tools.currentTimeEventGenerator
Class CurrentTimeEventGenerationFilter
java.lang.Object
kieker.analysis.plugin.AbstractPlugin
kieker.analysis.plugin.filter.AbstractFilterPlugin
kieker.tools.currentTimeEventGenerator.CurrentTimeEventGenerationFilter
- All Implemented Interfaces:
- IFilterPlugin, IPlugin
public class CurrentTimeEventGenerationFilter
- extends AbstractFilterPlugin
Generates time events with a given resolution based on the timestamps of
incoming IMonitoringRecord
s.
- The first record received via
inputTimestamp(Long)
immediately leads to a new TimestampRecord
with the given timestamp.
- The timestamp of the first record is stored as
firstTimestamp
and future events are generated at firstTimestamp
+ i *
timerResolution
.
- Future
IMonitoringRecord
may lead to future TimestampRecord
as follows:
- A newly incoming
IMonitoringRecord
with logging timestamp tstamp leads to the new timer events satisfying
firstTimestamp
+ i * timerResolution
< tstamp.
It is guaranteed that the generated timestamps are in ascending order.
- Author:
- Andre van Hoorn
Methods inherited from class kieker.analysis.plugin.AbstractPlugin |
areAllRepositoryPortsConnected, connect, connect, getAllDisplayNames, getAllInputPortNames, getAllOutputPortNames, getAllRepositoryPortNames, getConnectedPlugins, getCurrentRepositories, getIncomingPlugins, getName, getPluginDescription, getPluginName, getState, isConnectionAllowed, shutdown, start |
INPUT_PORT_NAME_NEW_TIMESTAMP
public static final String INPUT_PORT_NAME_NEW_TIMESTAMP
- See Also:
- Constant Field Values
INPUT_PORT_NAME_NEW_RECORD
public static final String INPUT_PORT_NAME_NEW_RECORD
- See Also:
- Constant Field Values
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
public static final String OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
- See Also:
- Constant Field Values
OUTPUT_PORT_NAME_CURRENT_TIME_VALUE
public static final String OUTPUT_PORT_NAME_CURRENT_TIME_VALUE
- See Also:
- Constant Field Values
CONFIG_PROPERTY_NAME_TIME_RESOLUTION
public static final String CONFIG_PROPERTY_NAME_TIME_RESOLUTION
- See Also:
- Constant Field Values
CurrentTimeEventGenerationFilter
public CurrentTimeEventGenerationFilter(Configuration configuration)
- Creates an event generator which generates time events with the given
resolution in nanoseconds via the output port
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
.
- Parameters:
configuration
- The configuration to be used for this plugin.
inputRecord
public void inputRecord(IMonitoringRecord record)
inputTimestamp
public void inputTimestamp(Long timestamp)
- Evaluates the given timestamp internal current time which may lead to
newly generated events via
OUTPUT_PORT_NAME_CURRENT_TIME_RECORD
.
getCurrentConfiguration
public Configuration getCurrentConfiguration()
- Description copied from interface:
IPlugin
- 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.
- Returns:
- A completely filled configuration object.
Copyright 2012 Kieker Project, http://kieker-monitoring.net>