Package org.yamcs.archive
Class YarchReplay
- java.lang.Object
-
- org.yamcs.archive.YarchReplay
-
- All Implemented Interfaces:
StreamSubscriber
public class YarchReplay extends Object implements 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.
-
-
Constructor Summary
Constructors Constructor Description YarchReplay(ReplayServer replayServer, ReplayOptions rr, ReplayListener listener, XtceDb xtceDb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeSpeed(org.yamcs.protobuf.Yamcs.ReplaySpeed newSpeed)org.yamcs.protobuf.Yamcs.ReplayRequestgetCurrentReplayRequest()org.yamcs.protobuf.Yamcs.ReplayStatus.ReplayStategetState()voidonTuple(Stream s, Tuple t)voidpause()voidquit()voidseek(long newReplayTime)voidstart()voidstreamClosed(Stream stream)
-
-
-
Constructor Detail
-
YarchReplay
public YarchReplay(ReplayServer replayServer, ReplayOptions rr, ReplayListener listener, XtceDb xtceDb) throws YamcsException
- Throws:
YamcsException
-
-
Method Detail
-
getState
public org.yamcs.protobuf.Yamcs.ReplayStatus.ReplayState getState()
-
start
public void start()
-
seek
public void seek(long newReplayTime) throws YamcsException- Throws:
YamcsException
-
changeSpeed
public void changeSpeed(org.yamcs.protobuf.Yamcs.ReplaySpeed newSpeed)
-
pause
public void pause()
-
quit
public void quit()
-
onTuple
public void onTuple(Stream s, Tuple t)
- Specified by:
onTuplein interfaceStreamSubscriber
-
streamClosed
public void streamClosed(Stream stream)
- Specified by:
streamClosedin interfaceStreamSubscriber
-
getCurrentReplayRequest
public org.yamcs.protobuf.Yamcs.ReplayRequest getCurrentReplayRequest()
-
-