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.ThreadPoolType
Nested 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, LATE_TIME_INTERVAL_WARN_THRESHOLD_SETTING, SLOW_SCHEDULER_TASK_WARN_THRESHOLD_SETTING, THREAD_POOL_TYPES
-
Constructor Summary
ConstructorDescriptionTestThreadPool
(String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders) TestThreadPool
(String name, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders) -
Method Summary
Methods inherited from class org.elasticsearch.threadpool.ThreadPool
absoluteTimeInMillis, assertCurrentMethodIsNotCalledRecursively, assertNotScheduleThread, awaitTermination, builders, generic, getThreadContext, info, info, rawRelativeTimeInMillis, relativeTimeInMillis, relativeTimeInNanos, schedule, scheduler, scheduleUnlessShuttingDown, scheduleWithFixedDelay, searchThreadPoolSize, stats, stopCachedTimeThread, terminate, terminate
-
Constructor Details
-
Method Details
-
executor
- Overrides:
executor
in classorg.elasticsearch.threadpool.ThreadPool
-
startForcingRejections
public void startForcingRejections() -
stopForcingRejections
public void stopForcingRejections() -
shutdown
public void shutdown()- Overrides:
shutdown
in classorg.elasticsearch.threadpool.ThreadPool
-
shutdownNow
public void shutdownNow()- Overrides:
shutdownNow
in classorg.elasticsearch.threadpool.ThreadPool
-