public class NettyProtocol extends Object
Modifier and Type | Method and Description |
---|---|
org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler[] |
getClientChannelHandlers()
Returns the client channel handlers.
|
org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler[] |
getServerChannelHandlers()
Returns the server channel handlers.
|
public org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler[] getServerChannelHandlers()
+-------------------------------------------------------------------+ | SERVER CHANNEL PIPELINE | | | | +----------+----------+ (3) write +----------------------+ | | | Queue of queues +----------->| Message encoder | | | +----------+----------+ +-----------+----------+ | | /|\ \|/ | | | (2) enqueue | | | +----------+----------+ | | | | Request handler | | | | +----------+----------+ | | | /|\ | | | | | | | +-----------+-----------+ | | | | Message+Frame decoder | | | | +-----------+-----------+ | | | /|\ | | +---------------+-----------------------------------+---------------+ | | (1) client request \|/ +---------------+-----------------------------------+---------------+ | | | | | [ Socket.read() ] [ Socket.write() ] | | | | Netty Internal I/O Threads (Transport Implementation) | +-------------------------------------------------------------------+
public org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler[] getClientChannelHandlers()
+-----------+----------+ +----------------------+ | Remote input channel | | request client | +-----------+----------+ +-----------+----------+ | | (1) write +---------------+-----------------------------------+---------------+ | | CLIENT CHANNEL PIPELINE | | | | \|/ | | +----------+----------+ +----------------------+ | | | Request handler + | Message encoder | | | +----------+----------+ +-----------+----------+ | | /|\ \|/ | | | | | | +----------+------------+ | | | | Message+Frame decoder | | | | +----------+------------+ | | | /|\ | | +---------------+-----------------------------------+---------------+ | | (3) server response \|/ (2) client request +---------------+-----------------------------------+---------------+ | | | | | [ Socket.read() ] [ Socket.write() ] | | | | Netty Internal I/O Threads (Transport Implementation) | +-------------------------------------------------------------------+
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.