Package com.linkedin.venice.listener
Class HttpChannelInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
com.linkedin.venice.listener.HttpChannelInitializer
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class HttpChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionHttpChannelInitializer(ReadOnlyStoreRepository storeMetadataRepository, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewRepository, io.tehuti.metrics.MetricsRepository metricsRepository, Optional<SSLFactory> sslFactory, ThreadPoolExecutor sslHandshakeExecutor, VeniceServerConfig serverConfig, Optional<StaticAccessController> routerAccessController, Optional<DynamicAccessController> storeAccessController, StorageReadRequestHandler requestHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected ReadQuotaEnforcementHandlervoidinitChannel(io.netty.channel.socket.SocketChannel ch) List<io.grpc.ServerInterceptor>SSL Certificates can only be accessed easily via Server Interceptors for gRPC, so we create our acls here We can create aclInterceptor list as these handlers are already present withinMethods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
HttpChannelInitializer
public HttpChannelInitializer(ReadOnlyStoreRepository storeMetadataRepository, CompletableFuture<HelixCustomizedViewOfflinePushRepository> customizedViewRepository, io.tehuti.metrics.MetricsRepository metricsRepository, Optional<SSLFactory> sslFactory, ThreadPoolExecutor sslHandshakeExecutor, VeniceServerConfig serverConfig, Optional<StaticAccessController> routerAccessController, Optional<DynamicAccessController> storeAccessController, StorageReadRequestHandler requestHandler)
-
-
Method Details
-
getQuotaEnforcer
-
initChannel
public void initChannel(io.netty.channel.socket.SocketChannel ch) - Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
initGrpcRequestProcessor
-
initGrpcInterceptors
SSL Certificates can only be accessed easily via Server Interceptors for gRPC, so we create our acls here We can create aclInterceptor list as these handlers are already present within
-