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

    Constructors
    Constructor
    Description
    TestThreadPool(String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)
     
    TestThreadPool(String name, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
     
    void
     
    void
     
    void
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestThreadPool

      public TestThreadPool(String name, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)
    • TestThreadPool

      public TestThreadPool(String name, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ExecutorBuilder<?>... customBuilders)
  • Method Details

    • executor

      public ExecutorService executor(String name)
      Overrides:
      executor in class org.elasticsearch.threadpool.ThreadPool
    • startForcingRejections

      public void startForcingRejections()
    • stopForcingRejections

      public void stopForcingRejections()
    • shutdown

      public void shutdown()
      Overrides:
      shutdown in class org.elasticsearch.threadpool.ThreadPool
    • shutdownNow

      public void shutdownNow()
      Overrides:
      shutdownNow in class org.elasticsearch.threadpool.ThreadPool