Package org.elasticsearch.threadpool
Class TestThreadPool
java.lang.Object
org.elasticsearch.threadpool.ThreadPool
org.elasticsearch.threadpool.TestThreadPool
- All Implemented Interfaces:
Closeable
,AutoCloseable
,TimeProvider
,org.elasticsearch.core.Releasable
,ReportingService<ThreadPoolInfo>
,Scheduler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.threadpool.ThreadPool
ThreadPool.Info, ThreadPool.Names, ThreadPool.ThreadPoolType
Nested classes/interfaces inherited from interface org.elasticsearch.threadpool.Scheduler
Scheduler.Cancellable, Scheduler.ReschedulingRunnable, Scheduler.SafeScheduledThreadPoolExecutor, Scheduler.ScheduledCancellable
-
Field Summary
Fields inherited from class org.elasticsearch.threadpool.ThreadPool
DEFAULT_INDEX_AUTOSCALING_EWMA_ALPHA, ESTIMATED_TIME_INTERVAL_SETTING, LATE_TIME_INTERVAL_WARN_THRESHOLD_SETTING, searchAutoscalingEWMA, SLOW_SCHEDULER_TASK_WARN_THRESHOLD_SETTING, THREAD_POOL_METRIC_NAME_ACTIVE, THREAD_POOL_METRIC_NAME_COMPLETED, THREAD_POOL_METRIC_NAME_CURRENT, THREAD_POOL_METRIC_NAME_LARGEST, THREAD_POOL_METRIC_NAME_QUEUE, THREAD_POOL_METRIC_NAME_REJECTED, THREAD_POOL_METRIC_PREFIX, THREAD_POOL_TYPES, WRITE_THREAD_POOLS_EWMA_ALPHA_SETTING
-
Constructor Summary
ConstructorsConstructorDescriptionTestThreadPool
(String name, Settings settings, ExecutorBuilder<?>... customBuilders) TestThreadPool
(String name, ExecutorBuilder<?>... customBuilders) -
Method Summary
Methods inherited from class org.elasticsearch.threadpool.ThreadPool
absoluteTimeInMillis, assertCurrentMethodIsNotCalledRecursively, assertCurrentThreadPool, assertInSystemContext, assertNotScheduleThread, awaitTermination, builders, executor, generic, getThreadContext, info, info, oneEighthAllocatedProcessors, rawRelativeTimeInMillis, relativeTimeInMillis, relativeTimeInMillisSupplier, relativeTimeInNanos, schedule, scheduler, scheduleUnlessShuttingDown, scheduleWithFixedDelay, searchOrGetThreadPoolSize, shutdown, shutdownNow, stats, stopCachedTimeThread, terminate, terminate
-
Constructor Details
-
TestThreadPool
-
TestThreadPool
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.elasticsearch.core.Releasable
-