Class RcfServiceProvider

java.lang.Object
org.yamcs.sle.provider.RacfServiceProvider
org.yamcs.sle.provider.RcfServiceProvider
All Implemented Interfaces:
SleService

public class RcfServiceProvider extends RacfServiceProvider
  • Constructor Details

    • RcfServiceProvider

      public RcfServiceProvider(FrameSource frameDownlinker)
  • Method Details

    • init

      public void init(SleProvider provider)
      Description copied from interface: SleService
      Called at the beginning. to initialize the service.
    • processData

      public void processData(com.beanit.jasn1.ber.BerTag berTag, InputStream is) throws IOException
      Description copied from interface: SleService
      Called each time a message is received from the peer (SLE user) which cannot be processed by the SleProvider.

      The messages are not necessary valid. The service can always call the SleProvider.peerAbort() operation on the provider if it thinks the SLE user went awry.

      Throws:
      IOException
    • processSleStopInvocation

      protected void processSleStopInvocation(SleStopInvocation sleStopInvocation)
    • sendStatusReport

      public void sendStatusReport()
    • sendFrame

      public void sendFrame(CcsdsTime ert, Constants.FrameQuality frameQuality, int dataLinkContinuity, byte[] data, int dataOffset, int dataLength)
      Called by the FrameSource to send a new frame.
      Specified by:
      sendFrame in class RacfServiceProvider
      Parameters:
      ert -
      frameQuality -
      dataLinkContinuity - from CCSDS spec:
      • a value of ‘–1’ shall indicate that this is the first frame after the start of production;</li
      • a value of ‘0’ shall indicate that this frame is the direct successor to the last frame acquired from the space link by RAF production;</li
      • any non-zero positive value shall indicate that this frame is not the direct successor to the last frame acquired from the space link:</li
      • a non-zero positive value further indicates an estimate of the number of frames that were missed since the last frame acquired before this frame;
      • a value of ‘1’ may be used if no better estimate is available.
      data - frame data
      dataOffset - where in the data the buffer the frame starts
      dataLength - the length of the frame data
    • sendEof

      public void sendEof()
      Description copied from class: RacfServiceProvider
      Called by the FrameSource to signal the end of data (used for offline instances)
      Specified by:
      sendEof in class RacfServiceProvider
    • getState

      public State getState()
      Description copied from interface: SleService
      Returns the service state.

      Should be one of State.READY or State.ACTIVE

      Returns:
      the service state.
    • abort

      public void abort()
      Description copied from interface: SleService
      Called by the SleProvider when the connection has been abruptly terminated. The Service has to do necessary cleanup operation.
    • unbind

      public void unbind()
      Description copied from interface: SleService
      Called by the SleProvider when the user sent an UNBIND request. The provider will verify that the service is in the State.READY when calling this method.