Package kieker.analysis.generic.time
Class TimestampCurrentTimeEventGenerationFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.generic.time.AbstractCurrentTimeEventGenerationFilter<java.lang.Long>
kieker.analysis.generic.time.TimestampCurrentTimeEventGenerationFilter
public class TimestampCurrentTimeEventGenerationFilter extends AbstractCurrentTimeEventGenerationFilter<java.lang.Long>
Generates time events with a given resolution based on the timestamps of
incoming
IMonitoringRecords.
- The first record received immediately leads to a new
TimestampRecordwith the given timestamp. - The timestamp of the first record is stored as
AbstractCurrentTimeEventGenerationFilter.firstTimestampand future events are generated atAbstractCurrentTimeEventGenerationFilter.firstTimestamp+ i *AbstractCurrentTimeEventGenerationFilter.timerResolution. - Future
IMonitoringRecordmay lead to futureTimestampRecordas follows:- A newly incoming
IMonitoringRecordwith logging timestamp tstamp leads to the new timer events satisfyingAbstractCurrentTimeEventGenerationFilter.firstTimestamp+ i *AbstractCurrentTimeEventGenerationFilter.timerResolution< tstamp.
- A newly incoming
- Since:
- 1.3
- Author:
- Andre van Hoorn, Lars Bluemke
-
Field Summary
Fields inherited from class kieker.analysis.generic.time.AbstractCurrentTimeEventGenerationFilter
currentTimeRecordOutputPort, currentTimeValueOutputPort, firstTimestamp, maxTimestamp, mostRecentEventFired, timerResolution -
Constructor Summary
Constructors Constructor Description TimestampCurrentTimeEventGenerationFilter(long timerResolution)Creates an event generator which generates time events with the given resolution in timeunits. -
Method Summary
Modifier and Type Method Description protected voidexecute(java.lang.Long timestamp)Evaluates the given timestamp internal current time which may lead to newly generated events via currentTimeRecordOutputPort.Methods inherited from class kieker.analysis.generic.time.AbstractCurrentTimeEventGenerationFilter
getCurrentTimeRecordOutputPort, getCurrentTimeValueOutputPortMethods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPortMethods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
TimestampCurrentTimeEventGenerationFilter
public TimestampCurrentTimeEventGenerationFilter(long timerResolution)Creates an event generator which generates time events with the given resolution in timeunits.- Parameters:
timerResolution- The timer resolution used
-
-
Method Details
-
execute
protected void execute(java.lang.Long timestamp)Evaluates the given timestamp internal current time which may lead to newly generated events via currentTimeRecordOutputPort.- Specified by:
executein classAbstractCurrentTimeEventGenerationFilter<java.lang.Long>- Parameters:
timestamp- The next timestamp.
-