com.groupbyinc.flux.transport.netty4.Netty4Transport.class Maven / Gradle / Ivy
???? 4* 4com/groupbyinc/flux/transport/netty4/Netty4Transport HLcom/groupbyinc/flux/transport/TcpTransport; *com/groupbyinc/flux/transport/TcpTransport Netty4Transport.java 6com/groupbyinc/flux/transport/netty4/Netty4Transport$1 Mcom/groupbyinc/flux/transport/netty4/Netty4Transport$ServerChannelInitializer ServerChannelInitializer Mcom/groupbyinc/flux/transport/netty4/Netty4Transport$ClientChannelInitializer ClientChannelInitializer Icom/groupbyinc/flux/transport/netty4/Netty4Transport$ChannelCloseListener ChannelCloseListener java/util/Map$Entry
java/util/Map Entry 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder 7com/groupbyinc/flux/transport/TcpTransport$NodeChannels NodeChannels 8com/groupbyinc/flux/transport/TcpTransport$ScheduledPing
ScheduledPing 4com/groupbyinc/flux/common/settings/Setting$Property " +com/groupbyinc/flux/common/settings/Setting $ Property =com/groupbyinc/flux/common/network/NetworkService$TcpSettings ' 1com/groupbyinc/flux/common/network/NetworkService ) TcpSettings :com/groupbyinc/flux/transport/TransportRequestOptions$Type , 5com/groupbyinc/flux/transport/TransportRequestOptions . Type %java/lang/invoke/MethodHandles$Lookup 1 java/lang/invoke/MethodHandles 3 Lookup WORKER_COUNT -Lcom/groupbyinc/flux/common/settings/Setting; BLcom/groupbyinc/flux/common/settings/Setting; $NETTY_MAX_CUMULATION_BUFFER_CAPACITY ^Lcom/groupbyinc/flux/common/settings/Setting; %NETTY_MAX_COMPOSITE_BUFFER_COMPONENTS NETTY_RECEIVE_PREDICTOR_SIZE NETTY_RECEIVE_PREDICTOR_MIN NETTY_RECEIVE_PREDICTOR_MAX NETTY_BOSS_COUNT maxCumulationBufferCapacity /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; maxCompositeBufferComponents I recvByteBufAllocator 'Lio/netty/channel/RecvByteBufAllocator; workerCount receivePredictorMin receivePredictorMax serverOpenChannels @Lcom/groupbyinc/flux/transport/netty4/Netty4OpenChannelsHandler; bootstrap Lio/netty/bootstrap/Bootstrap; serverBootstraps Ljava/util/Map; GLjava/util/Map; $assertionsDisabled Z 2(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;)V netty TD(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/common/network/NetworkService;)V R V
W @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections Y newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; [ \
Z ] M N _ 6 7 a get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; c d
% e java/lang/Integer g intValue ()I i j
h k F C m 9 7 o -com/groupbyinc/flux/common/unit/ByteSizeValue q @ A s ; 7 u B C w = 7 y G A { > 7 } H A getBytes ()J ? ?
r ? *io/netty/channel/FixedRecvByteBufAllocator ? (I)V R ?
? ? D E ? )com/groupbyinc/flux/threadpool/ThreadPool ? )com/groupbyinc/flux/common/util/BigArrays ? ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry ? 9com/groupbyinc/flux/indices/breaker/CircuitBreakerService ? -io/netty/channel/AdaptiveRecvByteBufAllocator ? (III)V R ?
? ? this 6Lcom/groupbyinc/flux/transport/netty4/Netty4Transport; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; networkService 3Lcom/groupbyinc/flux/common/network/NetworkService; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry; circuitBreakerService ;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService; transportServiceAdapter 9()Lcom/groupbyinc/flux/transport/TransportServiceAdapter; 7Lcom/groupbyinc/flux/transport/TransportServiceAdapter; ? ? ? doStart ()V createBootstrap ()Lio/netty/bootstrap/Bootstrap; ? ?
? K L ? NETWORK_SERVER ? 7 * ? ? ? ? java/lang/Boolean ? booleanValue ()Z ? ?
? ? >com/groupbyinc/flux/transport/netty4/Netty4OpenChannelsHandler ? logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ? ? ;(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V R ?
? ? I J ? buildProfileSettings ()Ljava/util/Map; ? ?
? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? createFallbackSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? put f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? getValue ? ? ? build ? ?
? getKey ? ? ? java/lang/String ? createServerBootstrap C(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
?
bindServer ? ?
? ? ?
? doStop ?
java/lang/Throwable entry WLjava/util/Map$Entry; Ljava/util/Map$Entry; openChannels success io/netty/bootstrap/Bootstrap R ?
TCP_BLOCKING_CLIENT 7 &io/netty/channel/oio/OioEventLoopGroup transport_client_worker 6com/groupbyinc/flux/common/util/concurrent/EsExecutors daemonThreadFactory f(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;
((ILjava/util/concurrent/ThreadFactory;)V R
group I(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
! ,io/netty/channel/socket/oio/OioSocketChannel# channel 9(Ljava/lang/Class;)Lio/netty/bootstrap/AbstractBootstrap;%&
' &io/netty/channel/nio/NioEventLoopGroup) transport_client_boss+
* ,io/netty/channel/socket/nio/NioSocketChannel. getClientChannelInitializer #()Lio/netty/channel/ChannelHandler;01
2 handler I(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;45
6 io/netty/channel/ChannelOption8 CONNECT_TIMEOUT_MILLIS Lio/netty/channel/ChannelOption;:; 9< defaultConnectionProfile 1Lcom/groupbyinc/flux/transport/ConnectionProfile;>? @ /com/groupbyinc/flux/transport/ConnectionProfileB getConnectTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue;DE
CF )com/groupbyinc/flux/common/unit/TimeValueH millisJ ?
IK java/lang/MathM
toIntExact (J)IOP
NQ valueOf (I)Ljava/lang/Integer;ST
hU option Z(Lio/netty/channel/ChannelOption;Ljava/lang/Object;)Lio/netty/bootstrap/AbstractBootstrap;WX
Y TCP_NODELAY[; 9\ TCP_NO_DELAY^ 7 _ SO_KEEPALIVEa; 9b TCP_KEEP_ALIVEd 7 e TCP_SEND_BUFFER_SIZEg 7 h SO_SNDBUFj; 9k TCP_RECEIVE_BUFFER_SIZEm 7 n SO_RCVBUFp; 9q RCVBUF_ALLOCATORs; 9t TCP_REUSE_ADDRESSv 7 w SO_REUSEADDRy; 9z (Z)Ljava/lang/Boolean;S|
?} validate ?
? tcpSendBufferSize tcpReceiveBufferSize reuseAddress /com/groupbyinc/flux/transport/TransportSettings? BIND_HOST? 7 ?? java/util/List? isEmpty? ??? bind_host? putArray Z(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
? PUBLISH_HOST? 7 ?? publish_host? transport.netty.tcp_no_delay? (_ getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;??
? tcp_no_delay? K(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ??
? transport.netty.tcp_keep_alive? (e tcp_keep_alive? transport.netty.reuse_address? (w
reuse_address? $transport.netty.tcp_send_buffer_size? getAsBytesSize r(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue;??
? java/lang/Object? tcp_send_buffer_size? K([Ljava/lang/Object;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ??
? 'transport.netty.tcp_receive_buffer_size? tcp_receive_buffer_size? fallbackSettingsBuilder 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; fallbackBindHost $Ljava/util/List; Ljava/util/List; fallbackPublishHost fallbackTcpNoDelay fallbackTcpKeepAlive fallbackReuseAddress fallbackTcpSendBufferSize fallbackTcpBufferSize 6com/groupbyinc/flux/common/apache/logging/log4j/Logger? isDebugEnabled? ??? ?using profile[{}], worker_count[{}], port[{}], bind_host[{}], publish_host[{}], compress[{}], connect_timeout[{}], connections_per_node[{}/{}/{}/{}/{}], receive_predictor[{}->{}]? port? &(Ljava/lang/String;)Ljava/lang/String; c?
? compress? Q ? RECOVERY