Package org.yamcs.sle.user
Class RafServiceUserHandler
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.RafServiceUserHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
Implementation for the CCSDS RECOMMENDED STANDARD FOR SLE RCF SERVICE
CCSDS 911.2-B-3 August 2016
https://public.ccsds.org/Pubs/911x1b4.pdf
This class contains RAF specific implementation
- 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
ConstructorsConstructorDescriptionRafServiceUserHandler(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 voidsendStart(CompletableFuture<Void> cf, CcsdsTime start, CcsdsTime stop) voidsetRequestedFrameQuality(Constants.RequestedFrameQuality requestedFrameQuality) Set the requested frame quality.start()Request that the SLE service provider starts sending dataRequest that the SLE service provider starts sendingMethods 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
-
RafServiceUserHandler
public RafServiceUserHandler(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 data- Returns:
-
start
Request that the SLE service provider starts sending- Returns:
-
getRequestedFrameQuality
-
setRequestedFrameQuality
Set the requested frame quality. This has to be done before the service start.- Parameters:
requestedFrameQuality-
-
addMonitor
Add a monitor to be notified when events happen.- Overrides:
addMonitorin classRacfServiceUserHandler- Parameters:
monitor-
-
removeMonitor
- Overrides:
removeMonitorin classRacfServiceUserHandler
-
processData
- Specified by:
processDatain classAbstractServiceUserHandler- Throws:
IOException
-
sendStart
-
getApplicationIdentifier
- Specified by:
getApplicationIdentifierin classAbstractServiceUserHandler
-