Package org.elasticsearch.threadpool
Class TestThreadPool
java.lang.Object
org.elasticsearch.threadpool.ThreadPool
org.elasticsearch.threadpool.TestThreadPool
- All Implemented Interfaces:
org.elasticsearch.node.ReportingService<org.elasticsearch.threadpool.ThreadPoolInfo>,org.elasticsearch.threadpool.Scheduler
public class TestThreadPool
extends org.elasticsearch.threadpool.ThreadPool
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.threadpool.ThreadPool
org.elasticsearch.threadpool.ThreadPool.Info, org.elasticsearch.threadpool.ThreadPool.Names, org.elasticsearch.threadpool.ThreadPool.ThreadPoolTypeNested classes/interfaces inherited from interface org.elasticsearch.threadpool.Scheduler
org.elasticsearch.threadpool.Scheduler.Cancellable, org.elasticsearch.threadpool.Scheduler.ReschedulingRunnable, org.elasticsearch.threadpool.Scheduler.SafeScheduledThreadPoolExecutor, org.elasticsearch.threadpool.Scheduler.ScheduledCancellable -
Field Summary
Fields inherited from class org.elasticsearch.threadpool.ThreadPool
ESTIMATED_TIME_INTERVAL_SETTING, THREAD_POOL_TYPES -
Constructor Summary
Constructors Constructor Description TestThreadPool(java.lang.String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)TestThreadPool(java.lang.String name, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders) -
Method Summary
Modifier and Type Method Description java.util.concurrent.ExecutorServiceexecutor(java.lang.String name)voidshutdown()voidshutdownNow()voidstartForcingRejections()voidstopForcingRejections()Methods inherited from class org.elasticsearch.threadpool.ThreadPool
absoluteTimeInMillis, assertCurrentMethodIsNotCalledRecursively, assertNotScheduleThread, awaitTermination, builders, generic, getThreadContext, info, info, relativeTimeInMillis, relativeTimeInNanos, schedule, scheduler, scheduleUnlessShuttingDown, scheduleWithFixedDelay, searchThreadPoolSize, stats, stopCachedTimeThread, terminate, terminateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TestThreadPool
public TestThreadPool(java.lang.String name, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders) -
TestThreadPool
public TestThreadPool(java.lang.String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)
-
-
Method Details
-
executor
public java.util.concurrent.ExecutorService executor(java.lang.String name)- Overrides:
executorin classorg.elasticsearch.threadpool.ThreadPool
-
startForcingRejections
public void startForcingRejections() -
stopForcingRejections
public void stopForcingRejections() -
shutdown
public void shutdown()- Overrides:
shutdownin classorg.elasticsearch.threadpool.ThreadPool
-
shutdownNow
public void shutdownNow()- Overrides:
shutdownNowin classorg.elasticsearch.threadpool.ThreadPool
-