kieker.tools.currentTimeEventGenerator
Class CurrentTimeEventGenerator
java.lang.Object
kieker.tools.currentTimeEventGenerator.CurrentTimeEventGenerator
public class CurrentTimeEventGenerator
- extends Object
Generates time events with a given resolution based on the timestamps of
incoming IMonitoringRecords.
- The first record received via
newTimestamp(long) immediately leads to a new TimestampEvent 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 TimestampEvent 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
CurrentTimeEventGenerator
public CurrentTimeEventGenerator(long timeResolution)
- Creates an event generator which generates time events with the given
resolution in nanoseconds via the output port
getCurrentTimeOutputPort().
- Parameters:
timeResolution -
newTimestamp
public void newTimestamp(long timestamp)
- Evaluates the given timestamp internal current time which may lead to
newly generated events via
getCurrentTimeOutputPort().
getCurrentTimeOutputPort
public OutputPort<TimestampEvent> getCurrentTimeOutputPort()
Copyright 2011 the Kieker Project, http://kieker.sourceforge.net>