Package org.yamcs.sle.provider
Class RcfServiceProvider
java.lang.Object
org.yamcs.sle.provider.RacfServiceProvider
org.yamcs.sle.provider.RcfServiceProvider
- All Implemented Interfaces:
SleService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()Called by theSleProviderwhen the connection has been abruptly terminated.getState()Returns the service state.voidinit(SleProvider provider) Called at the beginning.voidprocessData(com.beanit.jasn1.ber.BerTag berTag, InputStream is) Called each time a message is received from the peer (SLE user) which cannot be processed by theSleProvider.protected voidprocessSleStopInvocation(SleStopInvocation sleStopInvocation) voidsendEof()Called by theFrameSourceto signal the end of data (used for offline instances)voidsendFrame(CcsdsTime ert, Constants.FrameQuality frameQuality, int dataLinkContinuity, byte[] data, int dataOffset, int dataLength) Called by theFrameSourceto send a new frame.voidvoidunbind()Called by theSleProviderwhen the user sent an UNBIND request.
-
Constructor Details
-
RcfServiceProvider
-
-
Method Details
-
init
Description copied from interface:SleServiceCalled at the beginning. to initialize the service. -
processData
Description copied from interface:SleServiceCalled each time a message is received from the peer (SLE user) which cannot be processed by theSleProvider.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
-
sendStatusReport
public void sendStatusReport() -
sendFrame
public void sendFrame(CcsdsTime ert, Constants.FrameQuality frameQuality, int dataLinkContinuity, byte[] data, int dataOffset, int dataLength) Called by theFrameSourceto send a new frame.- Specified by:
sendFramein classRacfServiceProvider- 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 datadataOffset- where in the data the buffer the frame startsdataLength- the length of the frame data
-
sendEof
public void sendEof()Description copied from class:RacfServiceProviderCalled by theFrameSourceto signal the end of data (used for offline instances)- Specified by:
sendEofin classRacfServiceProvider
-
getState
Description copied from interface:SleServiceReturns the service state.Should be one of
State.READYorState.ACTIVE- Returns:
- the service state.
-
abort
public void abort()Description copied from interface:SleServiceCalled by theSleProviderwhen the connection has been abruptly terminated. The Service has to do necessary cleanup operation. -
unbind
public void unbind()Description copied from interface:SleServiceCalled by theSleProviderwhen the user sent an UNBIND request. The provider will verify that the service is in theState.READYwhen calling this method.
-