Package org.yamcs.sle.user
Class RcfServiceUserHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.yamcs.sle.user.AbstractServiceUserHandler
org.yamcs.sle.user.RacfServiceUserHandler
org.yamcs.sle.user.RcfServiceUserHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
Implementation for the CCSDS RECOMMENDED STANDARD FOR SLE RAF SERVICE
CCSDS 911.1-B-4 August 2016
https://public.ccsds.org/Pubs/911x1b4.pdf
This is copy and paste from RafServiceUserHandler because the RAF and RCF are almost the same but slightly so
different (seems like the CCSDS committee was missing from school when the lessons about code reused has been taught).
We do however provide one common RAF/RCF interface to our users highlighting the small differences in the API.
- Author:
- nm
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields inherited from class org.yamcs.sle.user.AbstractServiceUserHandler
attr, authLevel, channelHandlerContext, monitors, startingCf, state -
Constructor Summary
ConstructorsConstructorDescriptionRcfServiceUserHandler(Isp1Authentication auth, SleAttributes attr, Constants.DeliveryMode deliveryMode, FrameConsumer consumer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMonitor(RacfSleMonitor monitor) Add a monitor to be notified when events happen.protected Constants.ApplicationIdentifiergetParameter(int parameterId) Get the value of an RAF parameter from the providerprotected voidprocessData(com.beanit.jasn1.ber.BerTag berTag, InputStream is) voidremoveMonitor(RacfSleMonitor monitor) protected voidRequest that the SLE service provider starts sendingRequest that the SLE service provider starts sending dataMethods inherited from class org.yamcs.sle.user.RacfServiceUserHandler
getDeliveryMode, setDeliveryModeMethods inherited from class org.yamcs.sle.user.AbstractServiceUserHandler
bind, changeState, channelActive, channelRead, channelRegistered, checkUnbound, exceptionCaught, getAuthLevel, getFuture, getInvokeId, getInvokeId, getNonBindCredentials, getState, getVersionNumber, isConnected, notifyDisconnected, peerAbort, processBindInvocation, processStopReturn, processUnbindInvocation, schedulePeriodicStatusReport, setAuthLevel, setVersionNumber, shutdown, stop, stopPeriodicStatusReport, unbind, verifyBindCredentials, verifyNonBindCredentialsMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
RcfServiceUserHandler
public RcfServiceUserHandler(Isp1Authentication auth, SleAttributes attr, Constants.DeliveryMode deliveryMode, FrameConsumer consumer)
-
-
Method Details
-
getParameter
Get the value of an RAF parameter from the provider- Specified by:
getParameterin classRacfServiceUserHandler- Parameters:
parameterId- one of the parameters defined inConstants.ParameterName. Note that not all of them make sense for the RAF, see the table 3-11 in the standard to see which ones make sense.- Returns:
-
start
Request that the SLE service provider starts sending- Returns:
-
addMonitor
Add a monitor to be notified when events happen.- Overrides:
addMonitorin classRacfServiceUserHandler- Parameters:
monitor-
-
removeMonitor
- Overrides:
removeMonitorin classRacfServiceUserHandler
-
start
Request that the SLE service provider starts sending data- Returns:
-
processData
- Specified by:
processDatain classAbstractServiceUserHandler- Throws:
IOException
-
sendStart
protected void sendStart(CompletableFuture<Void> cf, CcsdsTime start, CcsdsTime stop, GVCID requestedGvcid) -
getApplicationIdentifier
- Specified by:
getApplicationIdentifierin classAbstractServiceUserHandler
-