java.lang.Object
org.yamcs.archive.YarchReplay
- All Implemented Interfaces:
StreamSubscriber
Performs a replay from Yarch So far supported are: TM packets, PP groups, Events, Parameters and Command History.
It relies on handlers for each data type. Each handler creates a stream, the streams are merged and the output is sent to the listener This class can also handle pause/resume: simply stop sending data seek: closes the streams and creates new ones with a different starting time.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longmaximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue) -
Constructor Summary
ConstructorsConstructorDescriptionYarchReplay(ReplayServer replayServer, ReplayOptions rr, ReplayListener listener, Mdb mdb) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeEndAction(org.yamcs.protobuf.Yamcs.EndAction endAction) voidchangeRange(long start, long stop) voidchangeSpeed(SpeedSpec newSpeed) longorg.yamcs.protobuf.Yamcs.ReplayStatus.ReplayStategetState()voidvoidpause()voidquit()voidseek(long newReplayTime, boolean autostart) voidstart()voidstreamClosed(Stream stream)
-
Field Details
-
MAX_WAIT_TIME
public static final long MAX_WAIT_TIMEmaximum time to wait if SPEED is ORIGINAL meaning that if there is a gap in the data longer than this, we continue)- See Also:
-
-
Constructor Details
-
YarchReplay
public YarchReplay(ReplayServer replayServer, ReplayOptions rr, ReplayListener listener, Mdb mdb) throws YamcsException - Throws:
YamcsException
-
-
Method Details
-
getState
public org.yamcs.protobuf.Yamcs.ReplayStatus.ReplayState getState() -
start
public void start() -
seek
- Throws:
YamcsException
-
changeRange
- Throws:
YamcsException
-
changeSpeed
-
changeEndAction
public void changeEndAction(org.yamcs.protobuf.Yamcs.EndAction endAction) -
pause
public void pause() -
quit
public void quit() -
onTuple
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
- Specified by:
streamClosedin interfaceStreamSubscriber
-
getCurrentReplayRequest
-
getReplayTime
public long getReplayTime()
-