com.groupbyinc.flux.transport.netty4.Netty4Utils.class Maven / Gradle / Ivy
???? 4u 0com/groupbyinc/flux/transport/netty4/Netty4Utils java/lang/Object Netty4Utils.java 2com/groupbyinc/flux/transport/netty4/Netty4Utils$1 %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles
Lookup isAvailableProcessorsSet +Ljava/util/concurrent/atomic/AtomicBoolean; ()V
this 2Lcom/groupbyinc/flux/transport/netty4/Netty4Utils; setup setAvailableProcessors (I)V )es.set.netty.runtime.available.processors true java/lang/System getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
#com/groupbyinc/flux/common/Booleans " parseBoolean (Ljava/lang/String;)Z $ %
# &
( )java/util/concurrent/atomic/AtomicBoolean *
compareAndSet (ZZ)Z , -
+ . 2com/groupbyinc/flux/common/netty/util/NettyRuntime 0
1 2 availableProcessors ()I 4 5
1 6 java/util/Locale 8 ROOT Ljava/util/Locale; : ; 9 < @available processors value [%d] did not match current value [%d] > java/lang/Integer @ valueOf (I)Ljava/lang/Integer; B C
A D java/lang/String F format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; H I
G J java/lang/IllegalStateException L (Ljava/lang/String;)V N
M O message Ljava/lang/String; I set Z toByteBuf d(Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; java/io/IOException X /com/groupbyinc/flux/common/bytes/BytesReference Z length \ 5
[ ] 0com/groupbyinc/flux/common/netty/buffer/Unpooled _ EMPTY_BUFFER 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; a b ` c :com/groupbyinc/flux/transport/netty4/ByteBufBytesReference e 3()Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; V g
f h iterator B()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator; j k
[ l java/util/ArrayList n
o p >com/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator r java/util/List t next :()Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; v w s x 6com/groupbyinc/flux/common/apache/lucene/util/BytesRef z bytes [B | } { ~ offset ? S { ? \ S { ?
wrappedBuffer 7([BII)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
` ? add (Ljava/lang/Object;)Z ? ? u ? size ? 5 u ? compositeBuffer =(I)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
` ? 8com/groupbyinc/flux/common/netty/buffer/CompositeByteBuf ?
addComponents Q(ZLjava/lang/Iterable;)Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ? ?
? ? java/lang/AssertionError ? no IO happens here ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? ? slice 8Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRef; composite :Lcom/groupbyinc/flux/common/netty/buffer/CompositeByteBuf; ex Ljava/io/IOException; @Lcom/groupbyinc/flux/common/apache/lucene/util/BytesRefIterator; buffers CLjava/util/List; Ljava/util/List; reference 1Lcom/groupbyinc/flux/common/bytes/BytesReference; toBytesReference d(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;)Lcom/groupbyinc/flux/common/bytes/BytesReference; /com/groupbyinc/flux/common/netty/buffer/ByteBuf ?
readableBytes ? 5
? ? e(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? buffer 5(Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;I)V ?
f ?
closeChannels (Ljava/util/Collection;)V java/lang/Exception ?
o java/util/Collection ? ()Ljava/util/Iterator; j ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? ()Ljava/lang/Object; v ? ? ? 0com/groupbyinc/flux/common/netty/channel/Channel ? isOpen ? ? ? ? close :()Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; ? ? ? ? failed to close channels ?
Y O
addSuppressed (Ljava/lang/Throwable;)V ? ?
Y ? u ? 6com/groupbyinc/flux/common/netty/channel/ChannelFuture ? awaitUninterruptibly ? ? ? ? e Ljava/lang/Exception; channel 2Lcom/groupbyinc/flux/common/netty/channel/Channel; future 8Lcom/groupbyinc/flux/common/netty/channel/ChannelFuture; channels JLjava/util/Collection; Ljava/util/Collection; closingExceptions futures JLjava/util/List; maybeDie java/lang/Error ? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ?
getStackTrace ()[Ljava/lang/StackTraceElement; ? ?
? ? java/util/Arrays ? stream .([Ljava/lang/Object;)Ljava/util/stream/Stream; ?
? java/util/stream/Stream skip (J)Ljava/util/stream/Stream; "java/lang/invoke/LambdaMetafactory metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
&(Ljava/lang/Object;)Ljava/lang/Object; lambda$maybeDie$0 1(Ljava/lang/StackTraceElement;)Ljava/lang/String;
apply ()Ljava/util/function/Function; map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;
java/util/stream/Collectors" joining 6(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;$%
#& collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;()* 2com/groupbyinc/flux/common/logging/ESLoggerFactory, getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger;./
-0 #fatal error on the network layer
{}2 org/apache/logging/log4j/Logger4 error '(Ljava/lang/String;Ljava/lang/Object;)V6758 lambda$maybeDie$1; ?
<= run +(Ljava/lang/Throwable;)Ljava/lang/Runnable;?@ A (Ljava/lang/Runnable;)V C
?D startF
?G java/lang/ThrowableI
stackTrace [Ljava/lang/StackTraceElement; formatted cause Ljava/lang/Throwable; java/lang/StringBuilderP
Q at S append -(Ljava/lang/String;)Ljava/lang/StringBuilder;UV
QW -(Ljava/lang/Object;)Ljava/lang/StringBuilder;UY
QZ toString ()Ljava/lang/String;\]
Q^ Ljava/lang/StackTraceElement;
Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactoryc setDefaultFactory Q(Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactory;)Vef
dg
+ Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature M(Ljava/util/Collection;)V BootstrapMethods
SourceFile InnerClasses !
j / *? ? k l - j ? l <