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

com.groupbyinc.flux.transport.local.LocalTransport.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?2com/groupbyinc/flux/transport/local/LocalTransport?Lcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;Lcom/groupbyinc/flux/transport/Transport;?com/groupbyinc/flux/common/component/AbstractLifecycleComponent'com/groupbyinc/flux/transport/TransportLocalTransport.java4com/groupbyinc/flux/transport/local/LocalTransport$3	4com/groupbyinc/flux/transport/local/LocalTransport$24com/groupbyinc/flux/transport/local/LocalTransport$1
java/util/Map$Entry
java/util/MapEntry/com/groupbyinc/flux/threadpool/ThreadPool$Names)com/groupbyinc/flux/threadpool/ThreadPoolNames"LOCAL_TRANSPORT_THREAD_NAME_PREFIXLjava/lang/String;local_transport
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;workers)Ljava/util/concurrent/ThreadPoolExecutor;versionLcom/groupbyinc/flux/Version;transportServiceAdapter7Lcom/groupbyinc/flux/transport/TransportServiceAdapter;boundAddress;transportAddressIdGenerator(Ljava/util/concurrent/atomic/AtomicLong;connectedNodes?Ljava/util/concurrent/ConcurrentMap;namedWriteableRegistry=Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;TRANSPORT_LOCAL_ADDRESStransport.local.address3TRANSPORT_LOCAL_WORKERStransport.local.workers6TRANSPORT_LOCAL_QUEUEtransport.local.queue9?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)V;>
?@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollectionsAnewConcurrentMap&()Ljava/util/concurrent/ConcurrentMap;CD
BE.*	G	I!"	Ksettings.Lcom/groupbyinc/flux/common/settings/Settings;MN	O6com/groupbyinc/flux/common/util/concurrent/EsExecutorsQboundedNumberOfProcessors1(Lcom/groupbyinc/flux/common/settings/Settings;)IST
RUjava/lang/IntegerWvalueOf(I)Ljava/lang/Integer;YZ
X[,com/groupbyinc/flux/common/settings/Settings]getAsInt:(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer;_`
^aintValue()Icd
Xelogger-Lcom/groupbyinc/flux/common/logging/ESLogger;gh	i&creating [{}] workers, queue_size [{}]kjava/lang/Objectm+com/groupbyinc/flux/common/logging/ESLoggerodebug((Ljava/lang/String;[Ljava/lang/Object;)VqrpsdaemonThreadFactoryf(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;uv
RwnewFixed{(Ljava/lang/String;IILjava/util/concurrent/ThreadFactory;)Lcom/groupbyinc/flux/common/util/concurrent/EsThreadPoolExecutor;yz
R{ 	}01	this4Lcom/groupbyinc/flux/transport/local/LocalTransport;workerCountI	queueSize
threadFactory$Ljava/util/concurrent/ThreadFactory;addressesFromStringM(Ljava/lang/String;I)[Lcom/groupbyinc/flux/common/transport/TransportAddress;5com/groupbyinc/flux/common/transport/TransportAddress?:com/groupbyinc/flux/common/transport/LocalTransportAddress?(Ljava/lang/String;)V;?
??addressperAddressLimitaddressSupported(Ljava/lang/Class;)Zequals(Ljava/lang/Object;)Z??
n?KLjava/lang/Class<+Lcom/groupbyinc/flux/common/transport/TransportAddress;>;Ljava/lang/Class;doStart()Vget&(Ljava/lang/String;)Ljava/lang/String;??
^?,-	?&java/util/concurrent/atomic/AtomicLong?incrementAndGet()J??
??java/lang/Long?toString(J)Ljava/lang/String;??
??java/lang/String?'(	?)*	?"java/util/concurrent/ConcurrentMap?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;????*com/groupbyinc/flux/ElasticsearchException?java/lang/StringBuilder?;?
??local address [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??] is already bound?()Ljava/lang/String;??
??;r
??:com/groupbyinc/flux/common/transport/BoundTransportAddress?r([Lcom/groupbyinc/flux/common/transport/TransportAddress;Lcom/groupbyinc/flux/common/transport/TransportAddress;)V;?
??%&	?previousdoStopremove&(Ljava/lang/Object;)Ljava/lang/Object;????values()Ljava/util/Collection;????java/util/Collection?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;????entrySet()Ljava/util/Set;????
java/util/Set???getValue???getKey???.com/groupbyinc/flux/cluster/node/DiscoveryNode?disconnectFromNode3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V??
entry{Ljava/util/Map$Entry;Ljava/util/Map$Entry;targetTransportdoClose
java/util/concurrent/TimeUnit	SECONDSLjava/util/concurrent/TimeUnit;	

	terminateI(Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)Z
:(Lcom/groupbyinc/flux/transport/TransportServiceAdapter;)V#$	>()Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;profileBoundAddresses()Ljava/util/Map;java/util/Collections	EMPTY_MAPLjava/util/Map;	
nodeConnected3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)ZcontainsKey!??"node0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;connectToNodeLight7com/groupbyinc/flux/transport/ConnectTransportException'
connectToNode)?
*9()Lcom/groupbyinc/flux/common/transport/TransportAddress;?,
?-???/Failed to connect1E(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;)V;3
(45com/groupbyinc/flux/transport/TransportServiceAdapter6raiseNodeConnected8?79java/lang/Throwable;raiseNodeDisconnected=?7>removed
serverOpensendRequest?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;JLjava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;)Vjava/io/IOExceptionD0com/groupbyinc/flux/transport/TransportExceptionF()Lcom/groupbyinc/flux/Version;!H
?Icom/groupbyinc/flux/VersionKsmallestY(Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/Version;MN
LO6com/groupbyinc/flux/common/io/stream/BytesStreamOutputQ
R?
setVersionR(Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/common/io/stream/StreamOutput;TU
RV	writeLong(J)VXY
RZ5com/groupbyinc/flux/transport/support/TransportStatus\
setRequest(B)B^_
]`	writeByte(B)Vbc
RdwriteStringf?
Rg.com/groupbyinc/flux/transport/TransportRequestiwriteTo6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)Vkl
jmcloseo?
Rp7com/groupbyinc/flux/transport/NodeNotConnectedExceptionrNode not connectedt
s45com/groupbyinc/flux/transport/TransportRequestOptionswbytes3()Lcom/groupbyinc/flux/common/bytes/BytesReference;yz
R{/com/groupbyinc/flux/common/bytes/BytesReference}toBytes()[B?~?sent?Y7?
onRequestSent?C7?+()Ljava/util/concurrent/ThreadPoolExecutor;?
??(Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/local/LocalTransport;[BLjava/lang/String;Lcom/groupbyinc/flux/Version;J)V;?
?'java/util/concurrent/ThreadPoolExecutor?execute(Ljava/lang/Runnable;)V??
??
addSuppressed(Ljava/lang/Throwable;)V??
<?statusBdata[Bstream8Lcom/groupbyinc/flux/common/io/stream/BytesStreamOutput;	requestIdJactionrequest0Lcom/groupbyinc/flux/transport/TransportRequest;options7Lcom/groupbyinc/flux/transport/TransportRequestOptions;messageReceivedx([BLjava/lang/String;Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/Version;Ljava/lang/Long;)V%Lcom/groupbyinc/flux/common/Nullable;(com/groupbyinc/flux/transport/Transports?assertTransportThread??
??received?Y7?0com/groupbyinc/flux/common/io/stream/StreamInput?wrap6([B)Lcom/groupbyinc/flux/common/io/stream/StreamInput;??
?? (Lcom/groupbyinc/flux/Version;)VT?
??readLong??
??readByte()B??
??	isRequest(B)Z??
]?
handleRequest?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;JLcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/Version;)V??
??onResponseReceived;(J)Lcom/groupbyinc/flux/transport/TransportResponseHandler;??7?isError??
]?handlerResponseErrorm(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
?6com/groupbyinc/flux/transport/TransportResponseHandler?handleResponse?(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
?	longValue??
??6com/groupbyinc/flux/transport/RemoteTransportException?nodeName??
?s(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/lang/String;Ljava/lang/Throwable;)V;?
??handleExceptionP(Lcom/groupbyinc/flux/transport/TransportResponseHandler;Ljava/lang/Throwable;)V??
?&Failed to receive message for action [?]?warn=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V??p?handler8Lcom/groupbyinc/flux/transport/TransportResponseHandler;2Lcom/groupbyinc/flux/common/io/stream/StreamInput;ZeLjava/lang/Throwable;sourceTransport
sendRequestIdLjava/lang/Long;java/lang/Exception?Ccom/groupbyinc/flux/common/io/stream/NamedWriteableAwareStreamInput?r(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;)V;?
?
readString?
?onRequestReceived(JLjava/lang/String;)V79com/groupbyinc/flux/transport/local/LocalTransportChannel	?(Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/TransportServiceAdapter;Lcom/groupbyinc/flux/transport/local/LocalTransport;Ljava/lang/String;JLcom/groupbyinc/flux/Version;)V;

getRequestHandlerJ(Ljava/lang/String;)Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;7>com/groupbyinc/flux/transport/ActionNotFoundTransportExceptionAction [] not found
?4com/groupbyinc/flux/transport/RequestHandlerRegistry
newRequest2()Lcom/groupbyinc/flux/transport/TransportRequest;
publishAddress,
? 
remoteAddress:(Lcom/groupbyinc/flux/common/transport/TransportAddress;)V"#
j$readFrom5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V&'
j(same*getExecutor,?
-
??processMessageReceivedc(Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportChannel;)V01
2executor3(Ljava/lang/String;)Ljava/util/concurrent/Executor;45
6?(Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/local/LocalTransportChannel;Ljava/lang/String;)V;8
9java/util/concurrent/Executor;<?sendResponse>?

?8Failed to send error message back to client for action [AActual ExceptionCreg6Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;e1transportChannel;Lcom/groupbyinc/flux/transport/local/LocalTransportChannel;newInstance3()Lcom/groupbyinc/flux/transport/TransportResponse;JK?L/com/groupbyinc/flux/transport/TransportResponseN
O$
O(=com/groupbyinc/flux/transport/TransportSerializationExceptionR(Failed to deserialize response of type [TgetClass()Ljava/lang/Class;VW
nXjava/lang/ClassZgetName\?
[]*(Ljava/lang/String;Ljava/lang/Throwable;)V;_
S`handleParsedResponsel(Lcom/groupbyinc/flux/transport/TransportResponse;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Vbc
dbufferresponse1Lcom/groupbyinc/flux/transport/TransportResponse;4??i?(Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/TransportResponseHandler;Lcom/groupbyinc/flux/transport/TransportResponse;)V;k

l
readThrowable()Ljava/lang/Throwable;no
?p4Failed to deserialize exception response from streamrerrorNone remote transport exceptionu5(Lcom/groupbyinc/flux/transport/TransportException;)V?w?x(failed to handle exception response [{}]zt?p|trtx8Lcom/groupbyinc/flux/transport/RemoteTransportException;getLocalAddresses()Ljava/util/List;0.0.0.0?
singletonList$(Ljava/lang/Object;)Ljava/util/List;??
?
access$000c(Lcom/groupbyinc/flux/transport/local/LocalTransport;)Lcom/groupbyinc/flux/common/logging/ESLogger;x0
access$100
access$200?(Lcom/groupbyinc/flux/transport/local/LocalTransport;Lcom/groupbyinc/flux/transport/TransportResponseHandler;Ljava/lang/Throwable;)Vx1x2
??
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTableN(Ljava/lang/Class<+Lcom/groupbyinc/flux/common/transport/TransportAddress;>;)Z
StackMapTablea()Ljava/util/Map;
Exceptions"RuntimeVisibleParameterAnnotations&()Ljava/util/List;
SourceFileInnerClasses!? !"B#$B%&B'()*?+,-.*?/012?45?78?:;<?}*+?@*?F?H*,?J*-?L*?P7+?V?\?b?f6*?P:?\?b?f6*?jl?nY?\SY?\S?t*?P?x:*?|?~*????R}??}MN}}!"}01+R??=@??g???.LCMNO+P=Q\RgSvT|U?=???N??Y??Y+??S?? ??????Y???M?+????????????^??????x*?P4??L+?
??????L*??Y+??????*??*???M,?'??Y??Y??¶?+??ȶƶ??n?Ϳ*??Y??Y*??S*???ҵԱ? x??
n?5C???&	c
deg$h5i9j]lwm????D????q??*????W??????L+???O+???M,?H????N-???*-???:??*?,???????ӧ???? Q.??q???Q?"q
s.tQu\vjxmypz????!?,????=*?~??W?????
~#?>*+?????#$?
??%?/*?԰??????.????????? ??*?H+?#????$%??&??>*+?+????$%?
???()???W*YM?*?H+?#?,ñ??+?.?0?N-??(Y+2?5?*?H+-??W*?+?:,ç
:,???OLOOSO? $&?W??W$%?*
????$?(?4?@?J?V??$?n???n	
??Y+*???L+?:*? ??
Y**? ?
:*??:?&?Y??Y???????ƶ˷??:		?Զ!?%	+?)+?.?/?	?3?$*?J?.?7?Y*	?:?=?M:?@?A:	*?j??Y??B??????ƶ??n??*?jD	?n???4??<???<?pA}EFpN??	?<G?	?H??????????!"??4?HI?V
4	A
Fi
p}????5?.?0?4?1?2?36?>?i?
?3j? B,0??d??df?d??d??Ogh?*
9
:;!='A*>,?[@\BcC??*??O<1bc?_*?J,?j?7?
Y*,+?m?=?? ??gh???
FQ????+?qN?:?SYs?aN*,-??<?>t?

????f???t??VYW
XZ[?H




© 2015 - 2025 Weber Informatics LLC | Privacy Policy