Package com.illumon.iris.db.v2.replay
Class DataDrivenReplayer
java.lang.Object
com.illumon.iris.db.v2.replay.Replayer
com.illumon.iris.db.v2.replay.DataDrivenReplayer
- All Implemented Interfaces:
LiveTable
,ReplayerInterface
public class DataDrivenReplayer extends Replayer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataDrivenReplayer(DBDateTime startTime, DBDateTime endTime)
-
Method Summary
Modifier and Type Method Description DBDateTime
currentTime()
Simulated time.void
refresh()
Refresh the simulated live tables.void
registerTimeSource(Index index, ColumnSource<DBDateTime> timestampSource)
Register the time column and index from a new table to replay.void
setTime(long updatedTime)
Sets the current replay time.void
start()
Starts replaying data.Methods inherited from class com.illumon.iris.db.v2.replay.Replayer
currentTimeNanos, getHandle, getTimeProvider, isDone, replay, replayGrouped, replayGroupedLastBy, schedule, shutdown, waitDone
-
Constructor Details
-
Method Details
-
currentTime
Description copied from class:Replayer
Simulated time.- Specified by:
currentTime
in interfaceReplayerInterface
- Overrides:
currentTime
in classReplayer
- Returns:
- simulated time.
-
registerTimeSource
Description copied from class:Replayer
Register the time column and index from a new table to replay. Most users will usereplay
,replayGrouped
, orreplayGroupedLastBy
instead of this function.- Overrides:
registerTimeSource
in classReplayer
- Parameters:
index
- table indextimestampSource
- column source containing time information.
-
start
public void start()Description copied from class:Replayer
Starts replaying data.- Specified by:
start
in interfaceReplayerInterface
- Overrides:
start
in classReplayer
-
refresh
public void refresh()Description copied from class:Replayer
Refresh the simulated live tables. -
setTime
public void setTime(long updatedTime)Description copied from class:Replayer
Sets the current replay time.- Specified by:
setTime
in interfaceReplayerInterface
- Overrides:
setTime
in classReplayer
- Parameters:
updatedTime
- new replay time.
-