public class RafServiceProvider extends RacfServiceProvider
| Constructor and Description |
|---|
RafServiceProvider(FrameDownlinker frameDownlinker) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Called by the
SleProvider when the connection has been abruptly terminated. |
State |
getState()
Returns the service state.
|
void |
init(SleProvider provider)
Called at the beginning.
|
void |
processData(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 the
SleProvider. |
protected void |
processSleStopInvocation(SleStopInvocation sleStopInvocation) |
void |
sendFrame(CcsdsTime ert,
Constants.FrameQuality frameQuality,
int dataLinkContinuity,
byte[] data,
int dataOffset,
int dataLength)
Called by the
FrameDownlinker to send a new frame. |
void |
sendStatusReport() |
void |
unbind()
Called by the
SleProvider when the user sent an UNBIND request. |
public RafServiceProvider(FrameDownlinker frameDownlinker)
public void init(SleProvider provider)
SleServicepublic void processData(com.beanit.jasn1.ber.BerTag berTag,
InputStream is)
throws IOException
SleServiceSleProvider.
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.
IOExceptionprotected void processSleStopInvocation(SleStopInvocation sleStopInvocation)
public void sendStatusReport()
public void sendFrame(CcsdsTime ert, Constants.FrameQuality frameQuality, int dataLinkContinuity, byte[] data, int dataOffset, int dataLength)
FrameDownlinker to send a new frame.sendFrame in class RacfServiceProviderert - frameQuality - dataLinkContinuity - from CCSDS spec:
data - frame datadataOffset - where in the data the buffer the frame startsdataLength - the length of the frame datapublic State getState()
SleService
Should be one of State.READY or State.ACTIVE
public void abort()
SleServiceSleProvider when the connection has been abruptly terminated. The Service has to do
necessary cleanup operation.public void unbind()
SleServiceSleProvider when the user sent an UNBIND request. The provider will verify that the service
is in the State.READY when calling this method.Copyright © 2020 Space Applications Services. All rights reserved.