com.groupbyinc.flux.transport.netty4.Netty4Utils.class Maven / Gradle / Ivy
???? 4Q 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 2com/groupbyinc/flux/common/logging/ESLoggerFactory ? getLogger 4(Ljava/lang/Class;)Lorg/apache/logging/log4j/Logger; ? ?
? ? $com/groupbyinc/flux/ExceptionsHelper ?
maybeError L(Ljava/lang/Throwable;Lorg/apache/logging/log4j/Logger;)Ljava/util/Optional; ? ?
? ? java/util/Optional ? isPresent ? ?
? java/lang/Thread
currentThread ()Ljava/lang/Thread;
getStackTrace ()[Ljava/lang/StackTraceElement;
formatStackTrace 2([Ljava/lang/StackTraceElement;)Ljava/lang/String;
? #fatal error on the network layer
{} org/apache/logging/log4j/Logger error '(Ljava/lang/String;Ljava/lang/Object;)V "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;
lambda$maybeDie$0 (Ljava/util/Optional;)V !
"# run *(Ljava/util/Optional;)Ljava/lang/Runnable;%& ' (Ljava/lang/Runnable;)V )
* start,
- java/lang/Throwable/ formatted cause Ljava/lang/Throwable; logger !Lorg/apache/logging/log4j/Logger; 'Ljava/util/Optional; Ljava/util/Optional; get8 ?
?9 java/lang/Error;
Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactory? setDefaultFactory Q(Lcom/groupbyinc/flux/common/netty/util/internal/logging/InternalLoggerFactory;)VAB
@C
+ Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature M(Ljava/util/Collection;)V BootstrapMethods
SourceFile InnerClasses !
F / *? ? G H . F ? H = F ? P? !? '<? ?? )? /?
? 3? 0? 7? )? =?? Y? ESY? 7? ES? KM? MY,? P?? G F Q R P 4 S E T U H 2 I J K R S " T ) Y 5 \ ; ] B Y F ^ O `I ? , V W F @ n*? ^? ? d?*? f? *? f? i?*? mL? oY? qM+? y YN? ,-? -? ?-? ?? ?? ? W???,? ? ? ?:,? ?W?N? ?Y?-? ?? ( a b Y G > 0 2 ? ? W ? ? c ? ? O j ? ( F ? ? n ? ? J ( F ? ? H 6
g h j k m o ( r 3 s L u W v _ w b x c yI &