Class FederatedWorkerHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class FederatedWorkerHandler
    extends io.netty.channel.ChannelInboundHandlerAdapter
    Note: federated worker handler created for every command; and concurrent parfor threads at coordinator need separate execution contexts at the federated sites too
    • Constructor Detail

      • FederatedWorkerHandler

        public FederatedWorkerHandler​(FederatedLookupTable flt,
                                      FederatedReadCache frc,
                                      FederatedWorkloadAnalyzer fan)
        Create a Federated Worker Handler. Note: federated worker handler created for every command; and concurrent parfor threads at coordinator need separate execution contexts at the federated sites too
        Parameters:
        flt - The Federated Lookup Table of the current Federated Worker.
        frc - Read cache shared by all worker handlers.
        fan - A Workload analyzer object (should be null if not used).
    • Method Detail

      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                Object msg)
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
      • exceptionCaught

        public void exceptionCaught​(io.netty.channel.ChannelHandlerContext ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelHandler
        Specified by:
        exceptionCaught in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        exceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapter