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 DBDateTimecurrentTime()Simulated time.voidrefresh()Refresh the simulated live tables.voidregisterTimeSource(Index index, ColumnSource<DBDateTime> timestampSource)Register the time column and index from a new table to replay.voidsetTime(long updatedTime)Sets the current replay time.voidstart()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:ReplayerSimulated time.- Specified by:
currentTimein interfaceReplayerInterface- Overrides:
currentTimein classReplayer- Returns:
- simulated time.
-
registerTimeSource
Description copied from class:ReplayerRegister the time column and index from a new table to replay. Most users will usereplay,replayGrouped, orreplayGroupedLastByinstead of this function.- Overrides:
registerTimeSourcein classReplayer- Parameters:
index- table indextimestampSource- column source containing time information.
-
start
public void start()Description copied from class:ReplayerStarts replaying data.- Specified by:
startin interfaceReplayerInterface- Overrides:
startin classReplayer
-
refresh
public void refresh()Description copied from class:ReplayerRefresh the simulated live tables. -
setTime
public void setTime(long updatedTime)Description copied from class:ReplayerSets the current replay time.- Specified by:
setTimein interfaceReplayerInterface- Overrides:
setTimein classReplayer- Parameters:
updatedTime- new replay time.
-