All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.http.netty.NettyHttpServerTransport.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?7com/groupbyinc/flux/http/netty/NettyHttpServerTransport?Lcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;Lcom/groupbyinc/flux/http/HttpServerTransport;?com/groupbyinc/flux/common/component/AbstractLifecycleComponent,com/groupbyinc/flux/http/HttpServerTransportNettyHttpServerTransport.javaRcom/groupbyinc/flux/http/netty/NettyHttpServerTransport$HttpChannelPipelineFactory	HttpChannelPipelineFactory9com/groupbyinc/flux/http/netty/NettyHttpServerTransport$1=com/groupbyinc/flux/common/network/NetworkService$TcpSettings1com/groupbyinc/flux/common/network/NetworkServiceTcpSettings+com/groupbyinc/flux/monitor/jvm/JvmInfo$Mem'com/groupbyinc/flux/monitor/jvm/JvmInfoMem;serverOpenChannels6Lcom/groupbyinc/flux/common/netty/OpenChannelsHandler;httpServerAdapter,Lcom/groupbyinc/flux/http/HttpServerAdapter;
corsConfig0Lcom/groupbyinc/flux/http/netty/cors/CorsConfig;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/network/NetworkService;Lcom/groupbyinc/flux/common/util/BigArrays;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)Vwz
{java/util/ArrayList}()Vw
~?no	?MN	?OP	?netty.epollBugWorkaround?java/lang/Boolean?valueOf(Z)Ljava/lang/Boolean;??
??,com/groupbyinc/flux/common/settings/Settings?getAsBoolean:(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;??
??booleanValue()Z??
??9com.groupbyinc.flux.common.jboss.netty.epollBugWorkaround?true?java/lang/System?setProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;??
??)com/groupbyinc/flux/common/util/BigArrays?http.netty.max_content_length?http.max_content_length?-com/groupbyinc/flux/common/unit/ByteSizeValue?d,com/groupbyinc/flux/common/unit/ByteSizeUnit?MB.Lcom/groupbyinc/flux/common/unit/ByteSizeUnit;??	??2(JLcom/groupbyinc/flux/common/unit/ByteSizeUnit;)Vw?
??getAsBytesSizer(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue;??
??http.netty.max_chunk_size?http.max_chunk_size?KB??	??UR	?http.netty.max_header_size?http.max_header_size?TR	?"http.netty.max_initial_line_length?http.max_initial_line_length?SR	?http.netty.reset_cookies?http.reset_cookies?\@	?)http.netty.max_cumulation_buffer_capacity?hR	?*http.netty.max_composite_buffer_components?java/lang/Integer?(I)Ljava/lang/Integer;??
??getAsInt:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;??
??intValue()I??
??iC	?http.netty.worker_count?6com/groupbyinc/flux/common/util/concurrent/EsExecutors?boundedNumberOfProcessors1(Lcom/groupbyinc/flux/common/settings/Settings;)I??
??VC	?http.netty.http.blocking_server?network.tcp.blocking_server?network.tcp.blocking?W@	?http.netty.port	http.portget?
?]	http.netty.bind_host
http.bind_host	http.host
getAsArray:(Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
?^I	http.netty.publish_hosthttp.publish_host_I	http.netty.tcp_no_delaynetwork.tcp.no_delaya	 http.netty.tcp_keep_alive"network.tcp.keep_alive$b	&http.netty.reuse_address(network.tcp.reuse_address*/com/groupbyinc/flux/common/network/NetworkUtils,defaultReuseAddress.?
-/c@	1http.netty.tcp_send_buffer_size3network.tcp.send_buffer_size5TCP_DEFAULT_SEND_BUFFER_SIZE7R	8dR	:"http.netty.tcp_receive_buffer_size<network.tcp.receive_buffer_size>TCP_DEFAULT_RECEIVE_BUFFER_SIZE@R	AeR	C`@	EjvmInfo+()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo;IJ
KgetMem/()Lcom/groupbyinc/flux/monitor/jvm/JvmInfo$Mem;MN
OgetDirectMemoryMax1()Lcom/groupbyinc/flux/common/unit/ByteSizeValue;QR
Sbytes()JUV
?W??333333java/lang/Math]max(JJ)J_`
^aminc`
^d http.netty.receive_predictor_minf!http.netty.receive_predictor_sizeh(J)Vwj
?k http.netty.receive_predictor_maxmUcom/groupbyinc/flux/common/jboss/netty/channel/FixedReceiveBufferSizePredictorFactoryo(I)Vwq
prfg	tXcom/groupbyinc/flux/common/jboss/netty/channel/AdaptiveReceiveBufferSizePredictorFactoryv(III)Vwx
wyZ@	{[C	}X@	YC	?buildCorsConfig`(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/http/netty/cors/CorsConfig;??
?uv	????logger-Lcom/groupbyinc/flux/common/logging/ESLogger;??	?java/lang/StringBuilder?
??maxContentLength[?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??,] set to high value, resetting it to [100mb]?toString()Ljava/lang/String;??
??java/lang/Object?+com/groupbyinc/flux/common/logging/ESLogger?warn((Ljava/lang/String;[Ljava/lang/Object;)V????QR	??using max_chunk_size[{}], max_header_size[{}], max_initial_line_length[{}], max_content_length[{}], receive_predictor[{}->{}], pipelining[{}], pipelining_max_events[{}]?debug????lJthis9Lcom/groupbyinc/flux/http/netty/NettyHttpServerTransport;settings.Lcom/groupbyinc/flux/common/settings/Settings;defaultReceiverPredictorreceivePredictorMinreceivePredictorMax0()Lcom/groupbyinc/flux/common/settings/Settings;??	?/(Lcom/groupbyinc/flux/http/HttpServerAdapter;)Vst	?doStart4com/groupbyinc/flux/common/netty/OpenChannelsHandler?0(Lcom/groupbyinc/flux/common/logging/ESLogger;)Vw?
??qr	?@com/groupbyinc/flux/common/jboss/netty/bootstrap/ServerBootstrap?Wcom/groupbyinc/flux/common/jboss/netty/channel/socket/oio/OioServerSocketChannelFactory?http_server_boss?daemonThreadFactoryf(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;??
??java/util/concurrent/Executors?newCachedThreadPoolL(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;??
??http_server_worker?A(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;)Vw?
??B(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelFactory;)Vw?
??jk	?Wcom/groupbyinc/flux/common/jboss/netty/channel/socket/nio/NioServerSocketChannelFactory?B(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;I)Vw?
??%configureServerChannelPipelineFactoryI()Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelPipelineFactory;??
?setPipelineFactoryJ(Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelPipelineFactory;)V??
??default?java/lang/String?equals(Ljava/lang/Object;)Z??
??child.tcpNoDelay?#com/groupbyinc/flux/common/Booleans?parseBoolean??
??	setOption'(Ljava/lang/String;Ljava/lang/Object;)V??
??child.keepAlivechild.sendBufferSizejava/lang/Long(J)Ljava/lang/Long;?
child.receiveBufferSize
f'child.receiveBufferSizePredictorFactory
cchild.reuseAddresscreateBoundHttpAddress>()Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;
lm	java/io/IOExceptionjava/lang/ExceptionresolveBindHostAddresses,([Ljava/lang/String;)[Ljava/net/InetAddress;
*com/groupbyinc/flux/http/BindHttpException Failed to resolve host ["java/util/Arrays$'([Ljava/lang/Object;)Ljava/lang/String;?&
%'])*(Ljava/lang/String;Ljava/lang/Throwable;)Vw+
!,[Ljava/net/InetAddress;.
~rjava/util/List1bindAddressY(Ljava/net/InetAddress;)Lcom/groupbyinc/flux/common/transport/InetSocketTransportAddress;34
5add7?28resolvePublishHostAddresses+([Ljava/lang/String;)Ljava/net/InetAddress;:;
<4com/groupbyinc/flux/transport/BindTransportException>!Failed to resolve publish address@
?,java/net/InetAddressCresolvePublishPortW(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/List;Ljava/net/InetAddress;)IEF
Gjava/net/InetSocketAddressI(Ljava/net/InetAddress;I)VwK
JL:com/groupbyinc/flux/common/transport/BoundTransportAddressNsizeP?2Q5com/groupbyinc/flux/common/transport/TransportAddressStoArray(([Ljava/lang/Object;)[Ljava/lang/Object;UV2W8[Lcom/groupbyinc/flux/common/transport/TransportAddress;Y?com/groupbyinc/flux/common/transport/InetSocketTransportAddress[(Ljava/net/InetSocketAddress;)Vw]
\^r([Lcom/groupbyinc/flux/common/transport/TransportAddress;Lcom/groupbyinc/flux/common/transport/TransportAddress;)Vw`
Oa
hostAddresseseLjava/io/IOException;addressLjava/net/InetAddress;publishInetAddressLjava/lang/Exception;boundAddressesSLjava/util/List;publishPortpublishAddressLjava/net/InetSocketAddress;http.netty.publish_portohttp.publish_portqiterator()Ljava/util/Iterator;st2ujava/util/IteratorwhasNexty?xznext()Ljava/lang/Object;|}x~()Ljava/net/InetSocketAddress;f?
\?
getAddress()Ljava/net/InetAddress;??
J?isAnyLocalAddress??
D?
D?getPort??
\?7com/groupbyinc/flux/common/carrotsearch/hppc/IntHashSet?
??3com/groupbyinc/flux/common/carrotsearch/hppc/IntSet?(I)Z7????Q?u>com/groupbyinc/flux/common/carrotsearch/hppc/cursors/IntCursor?value?C	??CFailed to auto-resolve http publish port, multiple bound addresses ?C with distinct ports and none of them matched the publish address (?). ?FPlease specify a unique port by setting http.port or http.publish_port?(Ljava/lang/String;)Vw?
!?boundInetAddressALcom/groupbyinc/flux/common/transport/InetSocketTransportAddress;ports5Lcom/groupbyinc/flux/common/carrotsearch/hppc/IntSet;5com/groupbyinc/flux/http/netty/cors/CorsConfigBuilder?
forOriginsL([Ljava/lang/String;)Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;??
??disable9()Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;??
??build2()Lcom/groupbyinc/flux/http/netty/cors/CorsConfig;??
??&(Ljava/lang/String;)Ljava/lang/String;?
??"com/groupbyinc/flux/common/Strings?
isNullOrEmpty(Ljava/lang/String;)Z??
??*?forAnyOrigin??
??*com/groupbyinc/flux/rest/support/RestUtils?checkCorsSettingForRegex-(Ljava/lang/String;)Ljava/util/regex/Pattern;??
??corsSettingAsArray'(Ljava/lang/String;)[Ljava/lang/String;??
??java/util/regex/Pattern?
forPatternR(Ljava/util/regex/Pattern;)Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;??
??allowCredentials??
??HI	?Dcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpMethod?IG[Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpMethod;?Z(Ljava/lang/String;)Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpMethod;??
??allowedRequestMethods?([Lcom/groupbyinc/flux/common/jboss/netty/handler/codec/http/HttpMethod;)Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;??
??maxAge:(J)Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;??
??JI	?allowedRequestHeaders??
??shortCircuit??
??builder7Lcom/groupbyinc/flux/http/netty/cors/CorsConfigBuilder;pLjava/util/regex/Pattern;iorigin
strMethodsmethods
?+java/util/concurrent/atomic/AtomicReference?
???(Lcom/groupbyinc/flux/http/netty/NettyHttpServerTransport;Ljava/net/InetAddress;Ljava/util/concurrent/atomic/AtomicReference;Ljava/util/concurrent/atomic/AtomicReference;)Vw

iterateA(Lcom/groupbyinc/flux/common/transport/PortsRange$PortCallback;)Z
Failed to bind to [}
?
java/lang/ThrowableisDebugEnabled??Bound http to address {{}}1com/groupbyinc/flux/common/network/NetworkAddressformat0(Ljava/net/InetSocketAddress;)Ljava/lang/String;
hostAddress
portsRange1Lcom/groupbyinc/flux/common/transport/PortsRange;
lastExceptionDLjava/util/concurrent/atomic/AtomicReference;-Ljava/util/concurrent/atomic/AtomicReference;boundSocketKLjava/util/concurrent/atomic/AtomicReference;successdoStop6com/groupbyinc/flux/common/jboss/netty/channel/Channel#close@()Lcom/groupbyinc/flux/common/jboss/netty/channel/ChannelFuture;%&$'+com/groupbyinc/flux/common/netty/NettyUtils?setup?
??OPTIONS?HEAD?GET?POST?PUT?DELETE?X-Requested-With?Content-Type?Content-Length?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTable
StackMapTableRuntimeVisibleAnnotationsLocalVariableTypeTable?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/List;Ljava/net/InetAddress;)I
Exceptions
SourceFileInnerClasses!0? !?#$?&'?)*?,-?/0?23?56?89?;<?>?@?ABC?DE?GHIJIKC?LMNOPQRSRTRURVCW@X@YCZ@[C\@]^I_I`@abc@dReRfghRiCDjkDlmDno?pqrDstuvwx??
g*+?|*?~Y????*,??*-??+????????????W+?+???Y?????????:*+?+???Y??÷???????*+?+ɻ?Y??÷???????*+?+ϻ?Yв÷???????*+?+???????????*+?????*+??????*+?+??h?????*+?+?+????????????*++G???	*++
+????*+++????*++????!*+#+%????'*+)++?0?????????2*+4+6?9?????;*+=+??B?????D*+>???????FG7?L?P?T?X	??,Y?L?P?T?X?k*???o?7[?b?e7+g+i??Y?l????:	+n+i??Y?l????:

?X	?X??*?pY
?X??s?u? *?wY	?X?	?X?
?X??z?u*+8???????|*+;????~*+2????????*+5'?????**+?????X???:*????Y??????????????????Y?????:*??*?????Y*??SY*??SY*??SY*??SY	SY
SY*????SY*????S????\	??g??g??gMNgOPMQR????(??R	A&?R
??.?????*?2?M?j?????????????
??8?R?f?z???????????????(?A?O?c??????????????????R?a?f????2??????S
????????y???/*????????s??>*+??????st?
?????S*??Y*???ĵ?*??2*??Y??Y*??̸и?*??ظиַ۷޵?3*??Y??Y*??̸и?*??ظи?*????޵?*??*????*?!???*???*?!????*?'???*??*?'???*?;?#*?;?X	??*??*?;?X?	?*?D?#*?D?X	??*??*?D?X?	?*??*?u?*??*?u?*??*?2???*??*?2???**????S???^???&?3?E?U?b?u????????
?
(9JR?
?E/)&&???*??*??L?-M?!Y??Y??#??*??(??*????,?-??~Y+??0M+N-?66?-2:,*?6?9W????*??*??=N?:??YA?B?*??,-?H6?JY-?M:?OY,,?R?T?X?Z?\Y?_?b?lx{?pc.)deY
fgxhg}
di???9?c.C?jo?:hg?/lC?#mn?C?jk?>9CYfl$x'{%}&?)?*?+?.O?)/?/2/?N?DEF???*p*r?????>?H+?v:?{?6??\:????:???,?????>?????X??Y??:+?v:?{???\:????W?????????????>?5?!Y??Y?????+?????,???????????????RB?g8$l??
l?lL??????jo?hg?lC??jk?J02384B5S6Y7\9_=c>l??@?A?B?C?G?H?L?(?"x?0\D????x?%?5???????+ ???????????????+#??M,?™???N?0,Ķ??
??N?,??:?,?Ѹ?N?	??N+/???????-??W+)?ܶ:???:6??2??S????-??+&L???셶?+,?????????p4??E??[??N????C??????%??dq???Q?I?I???^PQS%U,V7WAXHZN[S\^^datbyd?e?f?g?f?i?j?k?l?m?2????????????34?R??Y*?	??M??Y?N??Y?:,?
Y*+-??6?/?!Y??Y??	??*?	??*????-??
?-?*????!*????Y??J?S???\Y??J?_??>????g??}/k!@??} ?&	qrst/?4?`?l?????`D??)"?r*??YL?*???4*???vM,?{?,??$N-?(?-W???*??+ç
:+??*???*?ƶ/*??*???*??2*??ADDHD?+34r???:???+?7?:???K?R?Y?^?e?l?q????x?!D
?5?+??????l?/*???????67?i*?9L+???;Y+*???X?>?????m???	????O@A??%*??L?CY+?	?+?F+?	?+?I?L??%?? Mr?
???R????????N??/*????????OP?N*??+,?T?? ??UV3W?
??XY?-?,?_?a?<*???d?!*??f??Y+?l?pS?s+?l?(W?s*?w?|??,?_???1*???,?_??Y+?lS??+?l?(W?.*???,?_??Y+?lS??+?l?(W?? ???????d??2???6?E?O?P?\?{????????6
9*????7
?
Y**?F????
??????iI????Y?SY?SY?SY?SY?SY?S????Y?SY?SY?S???Yl/m???*

		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy