Package org.apache.ignite.client.handler
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
ConstructorsConstructorDescriptionClientInboundMessageHandler(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 TypeMethodDescriptionintvoidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidchannelRegistered(io.netty.channel.ChannelHandlerContext ctx) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidhandlerAdded(io.netty.channel.ChannelHandlerContext ctx) voidhandlerRemoved(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, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
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:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter
-
handlerRemoved
public void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
handlerRemovedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerRemovedin classio.netty.channel.ChannelHandlerAdapter
-
channelRegistered
- Specified by:
channelRegisteredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelRegisteredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
channelInactive
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
notify
public CompletableFuture<Boolean> notify(org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters parameters) - Specified by:
notifyin interfaceorg.apache.ignite.internal.event.EventListener<org.apache.ignite.internal.security.authentication.event.AuthenticationEventParameters>
-
resources
-
cancelHandlesCount
@TestOnly public int cancelHandlesCount()
-