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

com.groupbyinc.flux.transport.TransportService.class Maven / Gradle / Ivy

There is a newer version: 59
Show newest version
????3?.com/groupbyinc/flux/transport/TransportServicesLcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;?com/groupbyinc/flux/common/component/AbstractLifecycleComponentTransportService.javaDcom/groupbyinc/flux/transport/TransportService$DirectResponseChannelDirectResponseChannelcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener05com/groupbyinc/flux/node/settings/NodeSettingsService2ListenerDIRECT_RESPONSE_PROFILELjava/lang/String;.direct7blockIncomingRequestsLatch%Ljava/util/concurrent/CountDownLatch;	transport)Lcom/groupbyinc/flux/transport/Transport;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;taskManager'Lcom/groupbyinc/flux/tasks/TaskManager;requestHandlers?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;requestHandlerMutexLjava/lang/Object;clientHandlers>Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;~Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;
requestIds(Ljava/util/concurrent/atomic/AtomicLong;connectionListeners+Ljava/util/concurrent/CopyOnWriteArrayList;hLjava/util/concurrent/CopyOnWriteArrayList;timeoutInfoHandlersLjava/util/Map;cLjava/util/Map;adapter8Lcom/groupbyinc/flux/transport/TransportService$Adapter;SETTING_TRACE_LOG_INCLUDEtransport.tracer.includeTSETTING_TRACE_LOG_EXCLUDEtransport.tracer.excludeW	tracerLog-Lcom/groupbyinc/flux/common/logging/ESLogger;tracerLogInclude[Ljava/lang/String;tracelLogExcludesettingsListener>Lcom/groupbyinc/flux/transport/TransportService$ApplySettings;	localNode0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;$assertionsDisabledZW(Lcom/groupbyinc/flux/transport/Transport;Lcom/groupbyinc/flux/threadpool/ThreadPool;)VEMPTY_SETTINGS.Lcom/groupbyinc/flux/common/settings/Settings;fg	,h?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/Transport;Lcom/groupbyinc/flux/threadpool/ThreadPool;)Vdj
kthis0Lcom/groupbyinc/flux/transport/TransportService;*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)Vdp
q#java/util/concurrent/CountDownLatchs(I)Vdu
tv9:	x=com/groupbyinc/flux/common/google/common/collect/ImmutableMapzofA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;|}
{~AB	?java/lang/Object?()Vd?
??DE	?@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections?-newConcurrentMapLongWithAggressiveConcurrency@()Lcom/groupbyinc/flux/common/util/concurrent/ConcurrentMapLong;??
??FG	?&java/util/concurrent/atomic/AtomicLong?
??IJ	?)java/util/concurrent/CopyOnWriteArrayList?
??KL	??@6(Lcom/groupbyinc/flux/transport/TransportService;IFZ)Vd?
 ?java/util/Collections?synchronizedMap (Ljava/util/Map;)Ljava/util/Map;??
??NO	?3(Lcom/groupbyinc/flux/transport/TransportService;)Vd?
?^_	?`a	?;<	?=>	?"com/groupbyinc/flux/common/Strings?EMPTY_ARRAY?\	??java/lang/Boolean?valueOf(Z)Ljava/lang/Boolean;??
??
getAsArrayM(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/Boolean;)[Ljava/lang/String;??
.?[\	?java/lang/String?internal:discovery/zen/fd*?cluster:monitor/nodes/liveness?]\	?logger?Z	?.tracer?*com/groupbyinc/flux/common/logging/Loggers?	getLoggern(Lcom/groupbyinc/flux/common/logging/ESLogger;Ljava/lang/String;)Lcom/groupbyinc/flux/common/logging/ESLogger;??
??YZ	?
createAdapter:()Lcom/groupbyinc/flux/transport/TransportService$Adapter;??
?QR	?createTaskManager)()Lcom/groupbyinc/flux/tasks/TaskManager;??
??@	?settingssetLocalNode3(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)VgetLocalNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;getTaskManager
?%com/groupbyinc/flux/tasks/TaskManager??g	?
?qsetDynamicSettings:(Lcom/groupbyinc/flux/node/settings/NodeSettingsService;)VoptionaladdListenerC(Lcom/groupbyinc/flux/node/settings/NodeSettingsService$Listener;)V??
3?nodeSettingsService7Lcom/groupbyinc/flux/node/settings/NodeSettingsService;
applySettingsonRefreshSettings?p
?doStartrxMetric/Lcom/groupbyinc/flux/common/metrics/MeanMetric;?	-com/groupbyinc/flux/common/metrics/MeanMetricclear?
txMetric		'com/groupbyinc/flux/transport/TransporttransportServiceAdapter:(Lcom/groupbyinc/flux/transport/TransportServiceAdapter;)V
start()Ljava/lang/Object;boundAddress>()Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;+com/groupbyinc/flux/common/logging/ESLogger
isInfoEnabled()Z{}info((Ljava/lang/String;[Ljava/lang/Object;)V!"#profileBoundAddresses()Ljava/util/Map;%&'entrySet()Ljava/util/Set;)*$+
java/util/Set-iterator()Ljava/util/Iterator;/0.1java/util/Iterator3hasNext546next849profile [{}]: {};getKey=">getValue@"AentryeLjava/util/Map$Entry;Ljava/util/Map$Entry;doStopstopGHLcom/groupbyinc/flux/transport/TransportService$RequestHolder;eLjava/util/Map$Entry;doCloseclosed?eacceptIncomingRequests	countDownh?
tiaddressSupported(Ljava/lang/Class;)ZklmaddressKLjava/lang/Class<+Lcom/groupbyinc/flux/common/transport/TransportAddress;>;Ljava/lang/Class;/()Lcom/groupbyinc/flux/transport/TransportInfo;
:com/groupbyinc/flux/common/transport/BoundTransportAddresst+com/groupbyinc/flux/transport/TransportInfovN(Lcom/groupbyinc/flux/common/transport/BoundTransportAddress;Ljava/util/Map;)Vdx
wyboundTransportAddress(Lcom/groupbyinc/flux/transport/TransportConnectionListener;)Vadd??
??listener;Lcom/groupbyinc/flux/transport/TransportConnectionListener;removeConnectionListenerM?
??
submitRequest?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Lcom/groupbyinc/flux/transport/TransportFuture;0com/groupbyinc/flux/transport/TransportException?5com/groupbyinc/flux/transport/TransportRequestOptions?EMPTY7Lcom/groupbyinc/flux/transport/TransportRequestOptions;??	??(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Lcom/groupbyinc/flux/transport/TransportFuture;??
?actionrequest0Lcom/groupbyinc/flux/transport/TransportRequest;handler=Lcom/groupbyinc/flux/transport/TransportResponseHandler;8Lcom/groupbyinc/flux/transport/TransportResponseHandler;2com/groupbyinc/flux/transport/PlainTransportFuture?;(Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Vd?
??sendRequest?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
?options
futureHandler9Lcom/groupbyinc/flux/transport/PlainTransportFuture;4Lcom/groupbyinc/flux/transport/PlainTransportFuture;?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Vjava/lang/IllegalStateException?!can't send request to a null node?(Ljava/lang/String;)Vd?
??newRequestId??
?timeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;??
??4(Lcom/groupbyinc/flux/transport/TransportService;J)Vd?
??(Lcom/groupbyinc/flux/transport/TransportResponseHandler;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService$TimeoutHandler;)Vd?
?put'(JLjava/lang/Object;)Ljava/lang/Object;??K?	lifecycle0Lcom/groupbyinc/flux/common/component/Lifecycle;??	?.com/groupbyinc/flux/common/component/Lifecycle?stoppedOrClosed?
??5TransportService is closed stopped can't send request?
??bc	?java/lang/AssertionError?
??Qscheduley(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;??
)?future&Ljava/util/concurrent/ScheduledFuture;	sendLocalRequestF(JLjava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;)V
?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;JLjava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;)V?	
.com/groupbyinc/flux/transport/TransportRequest6com/groupbyinc/flux/transport/TransportResponseHandler(J)Ljava/lang/Object;MK
cancelTimeout?
;com/groupbyinc/flux/transport/SendRequestTransportExceptionZ(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Ljava/lang/Throwable;)Vd
executor3(Ljava/lang/String;)Ljava/util/concurrent/Executor;
)?(Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/transport/TransportService$RequestHolder;Lcom/groupbyinc/flux/transport/SendRequestTransportException;)Vd
 timeoutHandler?Lcom/groupbyinc/flux/transport/TransportService$TimeoutHandler;sendRequestException=Lcom/groupbyinc/flux/transport/SendRequestTransportException;eLjava/lang/Throwable;	requestIdJ?(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;JLcom/groupbyinc/flux/transport/TransportServiceAdapter;Lcom/groupbyinc/flux/threadpool/ThreadPool;)Vd*
+getRequestHandlerJ(Ljava/lang/String;)Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;-.
/>com/groupbyinc/flux/transport/ActionNotFoundTransportException1java/lang/StringBuilder3
4?Action [6append-(Ljava/lang/String;)Ljava/lang/StringBuilder;89
4:] not found<toString()Ljava/lang/String;>?
4@
2?4com/groupbyinc/flux/transport/RequestHandlerRegistryCgetExecutorE?
DFsameH
??processMessageReceivedc(Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportChannel;)VKL
DM?(Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportService$DirectResponseChannel;Ljava/lang/String;)VdO
PsendResponse(Ljava/lang/Throwable;)VRS
T6failed to notify channel of error message for action [V]Xwarn=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)VZ[\actual exception^reg6Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;e1channelFLcom/groupbyinc/flux/transport/TransportService$DirectResponseChannel;shouldTraceAction(Ljava/lang/String;)Z&com/groupbyinc/flux/common/regex/RegexgsimpleMatch(([Ljava/lang/String;Ljava/lang/String;)Zij
hkgetAndIncrementm?
?naddressesFromStringM(Ljava/lang/String;I)[Lcom/groupbyinc/flux/common/transport/TransportAddress;java/lang/ExceptionrpqtperAddressLimitIregisterRequestHandlero(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)Vp(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;ZLcom/groupbyinc/flux/transport/TransportRequestHandler;)Vxz
{Ljava/lang/Class;BLcom/groupbyinc/flux/transport/TransportRequestHandler;7Lcom/groupbyinc/flux/transport/TransportRequestHandler;}(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V?(Ljava/lang/String;Ljava/util/concurrent/Callable;Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/transport/TransportRequestHandler;Ljava/lang/String;Z)Vd?
D?9(Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;)Vx?
?requestFactory*Ljava/util/concurrent/Callable;Ljava/util/concurrent/Callable;ALcom/groupbyinc/flux/transport/RequestHandlerRegistry;?(Ljava/lang/String;Ljava/lang/Class;Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/transport/TransportRequestHandler;Ljava/lang/String;Z)Vd?
D?forceExecution	getAction??
D?get?N
{?-com/groupbyinc/flux/common/collect/MapBuilder?
newMapBuilder@(Ljava/util/Map;)Lcom/groupbyinc/flux/common/collect/MapBuilder;??
??U(Ljava/lang/Object;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder;??
??immutableMap?}
??Aregistered two transport handlers for action {}, handlers: {}, {}?Z"?replaced
removeHandlerC(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/collect/MapBuilder;M?
??
access$000_(Lcom/groupbyinc/flux/transport/TransportService;)Lcom/groupbyinc/flux/common/logging/ESLogger;x0
access$100
access$200
access$300
access$400
access$500E(Lcom/groupbyinc/flux/transport/TransportService;Ljava/lang/String;)Zef
?x1
access$600
access$700W(Lcom/groupbyinc/flux/transport/TransportService;)Ljava/util/concurrent/CountDownLatch;
access$800
access$900access$1000access$1100java/lang/Class?desiredAssertionStatus?
??
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTable
StackMapTableN(Ljava/lang/Class<+Lcom/groupbyinc/flux/common/transport/TransportAddress;>;)Z&()Ljava/util/List;
Exceptions(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Lcom/groupbyinc/flux/transport/TransportFuture;Q(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)Lcom/groupbyinc/flux/transport/TransportFuture;?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V?(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V?(Ljava/lang/String;Ljava/util/concurrent/Callable;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V?(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;ZLcom/groupbyinc/flux/transport/TransportRequestHandler;)V~(Lcom/groupbyinc/flux/transport/RequestHandlerRegistry;)V
SourceFileInnerClasses!56?89:;<=>?@@AB?CDEFG?HIJKL?MNO?PQRS6?UV6?XYZ@[\@]\^_@`abc3de?L
*?i+,?l?? 
mn
;<
=>?
k	ldj?F?*+?r*?tY?w?y*???*??Y????*????*??Y????*??Y????*? Y*d???????*?Y*????*??*,??*-??*+U????????*+X??Y?SY?S??????**??ϸյ?**?۵?**????*?mn??g?;<?=>?JpCHI#K*M5O@STe`heqjros?t?u?v?w?x?o???>*+????mn`a?
????/*????mn?????/*???mn?????3	?Y*???	mn?????6??Y*????mn?????A	+*??????	mn	???
???o?Z??p?A	*??+????	mn	?g?
?????'?*?ݴ?*?ݴ
?*??*?ݹ*???W*????w*?͹?k*?? ??Y*???S?$*???(?,?2L+?7?2+?:?"M*??<??Y,??SY,?BS?$??˱??"CE?mn??"CD?*
?
??!?+?C?_?????????s4?7F????*???IW*???L?2L+?7?<+?:?"M*??,???P?N-?*???T?Y*-?W?]????a:*???L?2:?7?B?:?":*?????P?:?*???T?Y*?W?]?????
^^`^?4?`a,,CE?`a?0CE?mn?,,Cb?0Cb?6
?
?,???C?X?[?^????????????3?4>?B_?_4?E??c??8
*???f??
mn?
?	?g??6*?y?j??mn?
??kl?Q*??+?n??mnoq?op????!r?k*?sL+???wY+*???(?z??mn{|???	????u}~?c9??Y*????*?ݴ??*?ݴ??*?ݴ
??*?ݴ
??????9mn???4
*?????
mn?????4
*??????
mn???????^+*?????*??+??????mn?a???@???`+*??????*??+????mn?a???????`+*??????*??+????mn?a?	??????`+*??????*??+????mn?a?????B
*??+??W??
mn
???
	???B
*??+??W??
mn
???
	???q
*+,-??????4
mn
?a
?6
??
???
?????????????Y??:*+,-????Hmn?a?6??????????????$%&???????u
*+,-???ͱ?4
mn
?a
?6
??
???
???
+,?????>	?+???Yַٿ*??7???	:??Y*??:*???Y+,???W*?????Y?????/????????Y???*???????+*?????*,-??*??+,-??G:	*????:

?0
??Y+,	?:*?????Y*
?!?]???_?z "#/?"#?$%?2`a
?B&'	?mn??a??6??????????()?????^01378#:/<H=R@]BbCxD?F?G?I?e?K?N?P?Q?T?U?f?2
??-???
?_?C????	ԻY*??*??-*??*???,:*??-?0:?%?2Y?4Y?57?;-?;=?;?A?B??G:I?J??N? *????Y*-?Q?]?L:?U?@:*?ͻ4Y?5W?;-?;Y?;?A???]*??_???]???_???_?\	%b`aS46?;b'?G&'?mn?()??6????cd?Bik%l*mLoSp^rjt?????????????????5?LD???B_??
__?<ef??0*?¾?*??+?l??*?ʾ?*??+?l?????0mn0?6??????.??@???2*???o??mn??pq?J*??+?u?? mno6vw???sxy?}*+,-?|??4mn?6?q6???}?~?
?
???x????DY+,*??-??:*????>mn?6??6?`a? ???~`???????xz???DY+,*??-??:*????Hmn?6?q6?c?`a? ?}?~`???????x???\*??YM?*??+?????DN**????+??+??????-?"*?????Y+??SY+SY-S??,ç
:,???QTTXT? 9?a\mn\`a?\`?????,?0?O?[???O?D_???????$*??YM?**????+??????,çN,?-??!?$mn$?6????#?????_?-.?@*??+???D??mn?6?????/*?Ͱ??n?????/*?Ͱ??n?????/*?Ͱ??n?????/*?Ͱ??n?????/*?Ͱ??n?????:*+?????n?6?????/*?װ??n?????/*?y???n?????/*?Ͱ??n?????/*?Ͱ??n?????/*?Ͱ??n?????/*?Ͱ??n?????4?š???????@???r	 "$%	')*	,./	134	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy