Class TimeReaderStage
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractProducerStage<java.lang.Long>
kieker.analysis.generic.source.time.TimeReaderStage
public class TimeReaderStage
extends teetime.framework.AbstractProducerStage<java.lang.Long>
This plugin provides the current (system) time in regular intervals. The time is delivered to the two output ports as both a timestamp and a
The reader can be configured to emit an arbitrary amount of signals. It can also be configured to emit an infinite amount of signals.
The sent timestamps are created using
TimestampRecord
instance.The reader can be configured to emit an arbitrary amount of signals. It can also be configured to emit an infinite amount of signals.
The sent timestamps are created using
System.nanoTime()
as a time source, which is being converted to the global time unit.
Note: This stage is only provided for porting purposes. It is highly recommended to use the @{link TimeSourceStage} instead.- Since:
- 1.8
- Author:
- Nils Christian Ehmke, Reiner Jung -- teetime port
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TimeReaderStage(long delay, java.lang.Long numberOfImpulses)
-
Method Summary
Modifier and Type Method Description protected void
execute()
teetime.framework.OutputPort<TimestampRecord>
getTimestampsRecordOutputPort()
Methods inherited from class teetime.framework.AbstractProducerStage
getOutputPort, getTerminationStrategy
Methods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
TimeReaderStage
public TimeReaderStage(long delay, java.lang.Long numberOfImpulses)
-
-
Method Details
-
execute
protected void execute() throws java.lang.Exception- Specified by:
execute
in classteetime.framework.AbstractStage
- Throws:
java.lang.Exception
-
getTimestampsRecordOutputPort
-