Class ClientInboundMessageHandler

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.apache.ignite.client.handler.ClientInboundMessageHandler
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, org.apache.ignite.internal.event.EventListener<org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters>

public class ClientInboundMessageHandler extends io.netty.channel.ChannelInboundHandlerAdapter implements org.apache.ignite.internal.event.EventListener<org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters>
Handles messages from thin clients.

All message handling is sequential, channelRead(io.netty.channel.ChannelHandlerContext, java.lang.Object) and other handlers are invoked on a single thread.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClientInboundMessageHandler(org.apache.ignite.internal.table.IgniteTablesInternal igniteTables, org.apache.ignite.internal.tx.TxManager txManager, org.apache.ignite.internal.sql.engine.QueryProcessor processor, org.apache.ignite.client.handler.configuration.ClientConnectorView configuration, org.apache.ignite.internal.compute.IgniteComputeInternal compute, org.apache.ignite.internal.network.ClusterService clusterService, Supplier<ClusterInfo> clusterInfoSupplier, ClientHandlerMetricSource metrics, org.apache.ignite.internal.security.authentication.AuthenticationManager authenticationManager, org.apache.ignite.internal.hlc.ClockService clockService, org.apache.ignite.internal.schema.SchemaSyncService schemaSyncService, org.apache.ignite.internal.catalog.CatalogService catalogService, long connectionId, ClientPrimaryReplicaTracker primaryReplicaTracker, Executor partitionOperationsExecutor, BitSet features, Map<org.apache.ignite.internal.client.proto.HandshakeExtension,Object> extensions, Function<String,CompletableFuture<org.apache.ignite.internal.compute.executor.platform.PlatformComputeConnection>> computeConnectionFunc, org.apache.ignite.internal.network.handshake.HandshakeEventLoopSwitcher handshakeEventLoopSwitcher)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
    void
    channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
    void
    channelRegistered(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
    void
    handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
     
    notify(org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters parameters)
     
     

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

    channelActive, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientInboundMessageHandler

      public ClientInboundMessageHandler(org.apache.ignite.internal.table.IgniteTablesInternal igniteTables, org.apache.ignite.internal.tx.TxManager txManager, org.apache.ignite.internal.sql.engine.QueryProcessor processor, org.apache.ignite.client.handler.configuration.ClientConnectorView configuration, org.apache.ignite.internal.compute.IgniteComputeInternal compute, org.apache.ignite.internal.network.ClusterService clusterService, Supplier<ClusterInfo> clusterInfoSupplier, ClientHandlerMetricSource metrics, org.apache.ignite.internal.security.authentication.AuthenticationManager authenticationManager, org.apache.ignite.internal.hlc.ClockService clockService, org.apache.ignite.internal.schema.SchemaSyncService schemaSyncService, org.apache.ignite.internal.catalog.CatalogService catalogService, long connectionId, ClientPrimaryReplicaTracker primaryReplicaTracker, Executor partitionOperationsExecutor, BitSet features, Map<org.apache.ignite.internal.client.proto.HandshakeExtension,Object> extensions, Function<String,CompletableFuture<org.apache.ignite.internal.compute.executor.platform.PlatformComputeConnection>> computeConnectionFunc, org.apache.ignite.internal.network.handshake.HandshakeEventLoopSwitcher handshakeEventLoopSwitcher)
      Constructor.
      Parameters:
      igniteTables - Ignite tables API entry point.
      processor - Sql query processor.
      configuration - Configuration.
      compute - Compute.
      clusterService - Cluster.
      clusterInfoSupplier - Cluster info supplier.
      metrics - Metrics.
      authenticationManager - Authentication manager.
      clockService - Clock service.
      schemaSyncService - Schema sync service.
      catalogService - Catalog service.
      connectionId - Connection ID.
      primaryReplicaTracker - Primary replica tracker.
      partitionOperationsExecutor - Partition operations executor.
      features - Features.
      extensions - Extensions.
  • Method Details

    • handlerAdded

      public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      handlerAdded in interface io.netty.channel.ChannelHandler
      Overrides:
      handlerAdded in class io.netty.channel.ChannelHandlerAdapter
    • handlerRemoved

      public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      handlerRemoved in interface io.netty.channel.ChannelHandler
      Overrides:
      handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
    • channelRegistered

      public void channelRegistered(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelRegistered in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelRegistered in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • 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
    • channelInactive

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • 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
    • notify

      public CompletableFuture<Boolean> notify(org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters parameters)
      Specified by:
      notify in interface org.apache.ignite.internal.event.EventListener<org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters>
    • resources

      @TestOnly public ClientResourceRegistry resources()
    • cancelHandlesCount

      @TestOnly public int cancelHandlesCount()