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.

  • Field Details

    • MAX_WAIT_TIME

      public static final long MAX_WAIT_TIME
      maximum 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

  • Method Details

    • getState

      public org.yamcs.protobuf.Yamcs.ReplayStatus.ReplayState getState()
    • start

      public void start()
    • seek

      public void seek(long newReplayTime, boolean autostart) throws YamcsException
      Throws:
      YamcsException
    • changeRange

      public void changeRange(long start, long stop) throws YamcsException
      Throws:
      YamcsException
    • changeSpeed

      public void changeSpeed(SpeedSpec newSpeed)
    • changeEndAction

      public void changeEndAction(org.yamcs.protobuf.Yamcs.EndAction endAction)
    • pause

      public void pause()
    • quit

      public void quit()
    • onTuple

      public void onTuple(Stream s, Tuple t)
      Specified by:
      onTuple in interface StreamSubscriber
    • streamClosed

      public void streamClosed(Stream stream)
      Specified by:
      streamClosed in interface StreamSubscriber
    • getCurrentReplayRequest

      public ReplayOptions getCurrentReplayRequest()
    • getReplayTime

      public long getReplayTime()