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

com.groupbyinc.flux.threadpool.ThreadPool.class Maven / Gradle / Ivy

????4?)com/groupbyinc/flux/threadpool/ThreadPool6com/groupbyinc/flux/common/component/AbstractComponentjava/io/CloseableThreadPool.java+com/groupbyinc/flux/threadpool/ThreadPool$1>com/groupbyinc/flux/threadpool/ThreadPool$ReschedulingRunnable
ReschedulingRunnable5com/groupbyinc/flux/threadpool/ThreadPool$Cancellable
Cancellable.com/groupbyinc/flux/threadpool/ThreadPool$InfoInfo8com/groupbyinc/flux/threadpool/ThreadPool$ExecutorHolderExecutorHolder:com/groupbyinc/flux/threadpool/ThreadPool$CachedTimeThreadCachedTimeThread:com/groupbyinc/flux/threadpool/ThreadPool$ThreadedRunnableThreadedRunnable9com/groupbyinc/flux/threadpool/ThreadPool$LoggingRunnableLoggingRunnable8com/groupbyinc/flux/threadpool/ThreadPool$ThreadPoolTypeThreadPoolType/com/groupbyinc/flux/threadpool/ThreadPool$Names"Names?com/groupbyinc/flux/threadpool/ExecutorBuilder$ExecutorSettings%.com/groupbyinc/flux/threadpool/ExecutorBuilder'ExecutorSettingsjava/util/Map$Entry*
java/util/Map,Entry4com/groupbyinc/flux/threadpool/ThreadPoolStats$Stats/.com/groupbyinc/flux/threadpool/ThreadPoolStats1Stats4com/groupbyinc/flux/common/settings/Setting$Property4+com/groupbyinc/flux/common/settings/Setting6PropertyFcom/groupbyinc/flux/threadpool/ThreadPool$CachedTimeThread$TimeCounter9TimeCounterTHREAD_POOL_TYPESLjava/util/Map;]Ljava/util/Map;	executors]Ljava/util/Map;	scheduler2Ljava/util/concurrent/ScheduledThreadPoolExecutor;cachedTimeThread;ESTIMATED_TIME_INTERVAL_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;ZLcom/groupbyinc/flux/common/settings/Setting;$assertionsDisabledZ()Ljava/util/Collection;I=	QvaluesSP-Tjava/util/CollectionsVunmodifiableCollection.(Ljava/util/Collection;)Ljava/util/Collection;XY
WZthis+Lcom/groupbyinc/flux/threadpool/ThreadPool;b(Lcom/groupbyinc/flux/common/settings/Settings;[Lcom/groupbyinc/flux/threadpool/ExecutorBuilder;)V1(Lcom/groupbyinc/flux/common/settings/Settings;)V^`
ajava/util/HashMapc()V^e
df?=	hNO	jcom/groupbyinc/flux/node/NodelNODE_NAME_SETTINGnL	moexists1(Lcom/groupbyinc/flux/common/settings/Settings;)Zqr
7sjava/lang/AssertionErroru
vf,com/groupbyinc/flux/common/settings/Settingsx1[Lcom/groupbyinc/flux/threadpool/ExecutorBuilder;z6com/groupbyinc/flux/common/util/concurrent/EsExecutors|numberOfProcessors1(Lcom/groupbyinc/flux/common/settings/Settings;)I~
}?halfNumberOfProcessorsMaxFive(I)I??
?halfNumberOfProcessorsMaxTen??
?	boundedBy(III)I??
?generic?5com/groupbyinc/flux/threadpool/ScalingExecutorBuilder?)com/groupbyinc/flux/common/unit/TimeValue?timeValueSeconds.(J)Lcom/groupbyinc/flux/common/unit/TimeValue;??
??B(Ljava/lang/String;IILcom/groupbyinc/flux/common/unit/TimeValue;)V^?
??put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;??-?index?3com/groupbyinc/flux/threadpool/FixedExecutorBuilder?E(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;II)V^?
??bulk?get?search?@com/groupbyinc/flux/threadpool/AutoQueueAdjustingExecutorBuilder?searchThreadPoolSize??
?H(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;IIIII)V^?
??
management?timeValueMinutes??
??listener?flush?refresh?warmer?snapshot?fetch_shard_started?force_merge?fetch_shard_store?name()Ljava/lang/String;??
(?containsKey(Ljava/lang/Object;)Z??-?"java/lang/IllegalArgumentException?java/lang/StringBuilder?
?fbuilder with name [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??] already exists?toString??
??(Ljava/lang/String;)V^?
??unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;??
W?8com/groupbyinc/flux/common/util/concurrent/ThreadContext?
?aGH	?entrySet()Ljava/util/Set;??-?
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next()Ljava/lang/Object;?getValue+getSettingsq(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/threadpool/ExecutorBuilder$ExecutorSettings;
(	build?(Lcom/groupbyinc/flux/threadpool/ExecutorBuilder$ExecutorSettings;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)Lcom/groupbyinc/flux/threadpool/ThreadPool$ExecutorHolder;
(
info0Lcom/groupbyinc/flux/threadpool/ThreadPool$Info;	getName?
java/lang/IllegalStateExceptionduplicate executors with name [] registered
?logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;	created thread pool: {}!
formatInfoD(Lcom/groupbyinc/flux/threadpool/ThreadPool$Info;)Ljava/lang/String;#$
(%6com/groupbyinc/flux/common/apache/logging/log4j/Logger'debug'(Ljava/lang/String;Ljava/lang/Object;)V)*(+getKey-+.same0EF	2DIRECT:Lcom/groupbyinc/flux/threadpool/ThreadPool$ThreadPoolType;45	 6O(Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool$ThreadPoolType;)V^8
9Y(Ljava/util/concurrent/ExecutorService;Lcom/groupbyinc/flux/threadpool/ThreadPool$Info;)V^;
<0java/util/concurrent/ScheduledThreadPoolExecutor>AdaemonThreadFactoryf(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;AB
}C8com/groupbyinc/flux/common/util/concurrent/EsAbortPolicyE
FfW(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V^H
?IAB	K1setExecuteExistingDelayedTasksAfterShutdownPolicy(Z)VMN
?O3setContinueExistingPeriodicTasksAfterShutdownPolicyQN
?RsetRemoveOnCancelPolicyTN
?UKL	WB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;?Y
7Z[timer]\
threadNameT(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;)Ljava/lang/String;^_
}`millis()Jbc
?d(Ljava/lang/String;J)V^f
gCD	istartke
lbuilder3Lcom/groupbyinc/flux/threadpool/ExecutorBuilder<*>;0Lcom/groupbyinc/flux/threadpool/ExecutorBuilder;executorSettingsALcom/groupbyinc/flux/threadpool/ExecutorBuilder$ExecutorSettings;executorHolder:Lcom/groupbyinc/flux/threadpool/ThreadPool$ExecutorHolder;entryYLjava/util/Map$Entry;Ljava/util/Map$Entry;settings.Lcom/groupbyinc/flux/common/settings/Settings;customBuilders4[Lcom/groupbyinc/flux/threadpool/ExecutorBuilder<*>;availableProcessorsIhalfProcMaxAt5halfProcMaxAt10genericThreadPoolMaxestimatedTimeInterval+Lcom/groupbyinc/flux/common/unit/TimeValue;relativeTimeInMillis?c
?absoluteTimeInMillis?c
?estimatedTimeInMillisCounter9()Lcom/groupbyinc/flux/common/apache/lucene/util/Counter;counterHLcom/groupbyinc/flux/threadpool/ThreadPool$CachedTimeThread$TimeCounter;??	?1()Lcom/groupbyinc/flux/threadpool/ThreadPoolInfo;java/util/ArrayList?
?fjava/util/Collection???java/util/List?java/lang/String?equals??
??add????-com/groupbyinc/flux/threadpool/ThreadPoolInfo?(Ljava/util/List;)V^?
??Ljava/lang/String;holderinfosBLjava/util/List;Ljava/util/List;D(Ljava/lang/String;)Lcom/groupbyinc/flux/threadpool/ThreadPool$Info;&(Ljava/lang/Object;)Ljava/lang/Object;??-?stats2()Lcom/groupbyinc/flux/threadpool/ThreadPoolStats;????????executor(()Ljava/util/concurrent/ExecutorService;??
?'java/util/concurrent/ThreadPoolExecutor?getPoolSize()I??
??getQueue&()Ljava/util/concurrent/BlockingQueue;??
??"java/util/concurrent/BlockingQueue?size????getActiveCount??
??getLargestPoolSize??
??getCompletedTaskCount?c
??getRejectedExecutionHandler1()Ljava/util/concurrent/RejectedExecutionHandler;??
??Dcom/groupbyinc/flux/common/util/concurrent/XRejectedExecutionHandler?rejected?c??(Ljava/lang/String;IIIJIJ)V^?
0?
2?threadPoolExecutor)Ljava/util/concurrent/ThreadPoolExecutor;rejectedExecutionHandler/Ljava/util/concurrent/RejectedExecutionHandler;threadsqueueactiveJlargest	completedHLjava/util/List;:(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService;??
?no executor service found for [?]?1()Ljava/util/concurrent/ScheduledExecutorService;scheduleWithFixedDelay?(Ljava/lang/Runnable;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/threadpool/ThreadPool$Cancellable;(Ljava/lang/Runnable;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V^?
?commandLjava/lang/Runnable;intervalscheduley(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;a(Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V^?
?B(Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Runnable;)V^?
?java/util/concurrent/TimeUnit?MILLISECONDSLjava/util/concurrent/TimeUnit;	?\(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;?
?delayshutdownrunning	O	
	interrupte

e
?
?shutdownNow()Ljava/util/List;
?
?awaitTermination#(JLjava/util/concurrent/TimeUnit;)Zjava/lang/InterruptedException
?
?toMillis(J)J
? join(J)V"#
$timeoutunitresultjava/lang/Math)max(II)I+,
*-min/,
*0valuetwiceNumberOfProcessors???	terminateI(Ljava/util/concurrent/ExecutorService;JLjava/util/concurrent/TimeUnit;)Z$java/util/concurrent/ExecutorService786
:8servicetimeUnit8java/lang/Thread@
currentThread()Ljava/lang/Thread;BC
AD
A
e Ljava/lang/InterruptedException;N(Lcom/groupbyinc/flux/threadpool/ThreadPool;JLjava/util/concurrent/TimeUnit;)Z
I
K5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsMcloseWhileHandlingException([Ljava/io/Closeable;)VOP
NQe
Sjava/lang/ThrowableUpool
closejava/io/IOExceptionZYe
?\getThreadContext<()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;assertNotScheduleThread(Ljava/lang/String;)Z
Acontains(Ljava/lang/CharSequence;)Zcd
?eExpected current thread [g-(Ljava/lang/Object;)Ljava/lang/StringBuilder;?i
?j+] to not be the scheduler thread. Reason: [l(Ljava/lang/Object;)V^n
voreason
access$000e(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;x0
access$200
access$300
access$400java/lang/ClassydesiredAssertionStatus{?
z|
d?SCALING5	 ?FIXED?5	 ?FIXED_AUTO_QUEUE_SIZE?5	 ?<=	?newDirectExecutorService??
}?#thread_pool.estimated_time_interval??timeValueMillis??
??	NodeScope6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	5?timeSetting?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
7?mapaLjava/util/HashMap;Ljava/util/HashMap;	SignatureCodeLocalVariableTableLineNumberTableJ()Ljava/util/Collection;LocalVariableTypeTable
StackMapTablee(Lcom/groupbyinc/flux/common/settings/Settings;[Lcom/groupbyinc/flux/threadpool/ExecutorBuilder<*>;)V|(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture<*>;
Exceptions
SourceFileInnerClasses!	<=?>?=?@ABCDEFGHI=?J	KL?MNO!IP?7
*?R?U?[??
\]?????^_??
~*+?b*?dY?g?i?k??p+?t??vY?w??dY?gN+??6??6??6h???6-???Y????????W-???Y+?ȷ???W-???Y+?ȷ???W-???Y+?????W-???Y+??????з???W-???Y????????W-???Y+?????W-???Y????????W-???Y????????W-û?Y????????W-Ż?Y????????W-ǻ?Y?h???????W-ɻ?Y+?????W-˻?Y?h???????W,:?6	6

	?P
2:-?Ϲ??'??Y??Y??ڶ??϶??޶??-????W?
???*-??R*??Y+????dY?g:-????:		????	??+:

??(+?
:
??(*??:?????,?Y??Y?????????޶??*? "
??(??&?,
?/??W??[1?Y?3?Y1?7?:?=??W*??i*??Y+@?D?FY?G?J?L*?L?P*?L?S*?L?V?X+?[??:	*?Y+]?a	?e?h?j*?j?m????@nptqr?jstd?uw
~\]~xy~zz0NI=6H|}=A~}D:}S+?}A=?=_??	?4?@nod?uv
~z{0NIJA=?@??2???(?0?6?=?D?S?n???????????????
?%?@?[?v?????????????$?,?8?A?d?t??????????????!?;?C?K?S?_?v?}??z?(y{??y{-{??(?y{-?)-??u+&?1	y{--???c?2*?j????\]???c?2*?j????\]?????2*?j????\]?????X??Y??L*?i?U??M,???2,??N-??:1??????+-???W??˻?Y+????*3??*"?tX\]P???P???"??*?3?>?ALO?????)??
??q*?i+???M,??,??? \]???t?	?????ջ?Y??L*?i?U??M,????,??N-??:1??????666?76
?7-?????O-????:

??6
????6
??6
??6

??7
??:?ә?ӹ?7+?0Y
?ٹ?W??N?2Y+?ڰ?zjC??
???3???D??}G??}J?}Oz??Rw?}
Wr??*??t?\]????????b*3>ADGJORWajq} ?!?"?#?$?%?(?)?*?=????)??k????????1*????\]?6????9*?i+???M,?%??Y??Y????+???޶??,???? 9\]9??+?t?EFG4I??4A??/*?L??\]?M???T?Y+,-*???*\]???????\????11,????Y*-*,???N*?L?Y*-??+?e????*1\]1?1??1???o
pr???e??P*?j?*?j?*?L?*?i?U??L+???$+??M,?????
,???????ٱ?8?tP\]?"vwxy8zB{L}O~??%?&?e??R*?j?*?j?*?L?W*?i?U??L+???%+??M,?????,?????W??ر?9?tR\]?"????9?C?N?Q???&?'???`*?L-?6*?i?U??:???/??:?????????-?~6???*?j-?!?%??41?t`\]`&?`'U(O???1?<?N?Q?]??
??2?????H
?.?1?? 
2}
/}
+}?????5`l????~}?????6`l
????~}??3??5h4????~}??	???2hl`??|}??	56??%*?"*?9*-?;??*?<W*-?;??? %=F%&?%>???
???#??

6??*-?????:?E?F??*GH=F&?>???
?????
B	5I??N*?K*?J*-?L?6?Y*S?R?*?T*-?L6?Y*S?R?:?Y*S?R??<".<<><? NW]N&?N>?.?????"?&?.?9?<?L??"YV
I??*-?X???:?E?F?
?*GHW]&?>??	??????BYe?6*??]??\]?
???[^_?/*???\]??	`a??E?k?@?E?b@?f?1?vY??Y??h?޸E?km??*???޶?p???Eq??\&]C^??Crs?/*? ??t]?Cus?/*? ??t]?Cvs?/*? ??t]?Cws?/*? ??t]?Cxe?q??}???k?dY?gK*1?7?~W*????~W*????~W*????~W*????~W*????~W*????~W*????~W*????~W*????~W*ò??~W*Ų??~W*ɲ??~W*Dz??~W*˲??~W*??????3?????5Y??S???X??????????ZC}~#-?7?A?K?U?_?i?s?}????????????????????@??z			 !@#$	&()+-.	023	578@:;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy