Package kieker.analysis.generic.time
Class RecordCurrentTimeEventGenerationFilter
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<T>
kieker.analysis.generic.time.AbstractCurrentTimeEventGenerationFilter<kieker.common.record.IMonitoringRecord>
kieker.analysis.generic.time.RecordCurrentTimeEventGenerationFilter
public class RecordCurrentTimeEventGenerationFilter extends AbstractCurrentTimeEventGenerationFilter<kieker.common.record.IMonitoringRecord>
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
-
Field Summary
Fields inherited from class kieker.analysis.generic.time.AbstractCurrentTimeEventGenerationFilter
currentTimeRecordOutputPort, currentTimeValueOutputPort, firstTimestamp, maxTimestamp, mostRecentEventFired, timerResolution -
Constructor Summary
Constructors Constructor Description RecordCurrentTimeEventGenerationFilter(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(kieker.common.record.IMonitoringRecord record)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
-
RecordCurrentTimeEventGenerationFilter
public RecordCurrentTimeEventGenerationFilter(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(kieker.common.record.IMonitoringRecord record)Evaluates the given timestamp internal current time which may lead to newly generated events via currentTimeRecordOutputPort.- Specified by:
executein classAbstractCurrentTimeEventGenerationFilter<kieker.common.record.IMonitoringRecord>- Parameters:
record- The next record.
-