Class ExecutorNames

java.lang.Object
org.elasticsearch.indices.ExecutorNames

public class ExecutorNames extends Object
A class that gathers the names of thread pool executors that should be used for a particular system index or system data stream. This object is used both by the SystemIndexDescriptor and the SystemDataStreamDescriptor classes.
  • Field Details

    • DEFAULT_SYSTEM_INDEX_THREAD_POOLS

      public static ExecutorNames DEFAULT_SYSTEM_INDEX_THREAD_POOLS
      The thread pools for a typical system index.
    • DEFAULT_SYSTEM_DATA_STREAM_THREAD_POOLS

      public static ExecutorNames DEFAULT_SYSTEM_DATA_STREAM_THREAD_POOLS
      The thread pools for a typical system data stream. These are also the usual thread pools for non-system indices and data streams.
    • CRITICAL_SYSTEM_INDEX_THREAD_POOLS

      public static ExecutorNames CRITICAL_SYSTEM_INDEX_THREAD_POOLS
      The thread pools that should be used for critical system index operations.
  • Constructor Details

    • ExecutorNames

      public ExecutorNames(String getPoolName, String searchPoolName, String writePoolName)
      Create a new collection of thread pool names for a system descriptor to use.
      Parameters:
      getPoolName - Name of the thread pool that get operations should use.
      searchPoolName - Name of the thread pool that search operations should use. (In same cases, this is the same as the name of the pool for get operations.)
      writePoolName - Name of the thread pool that write operations should use.
  • Method Details

    • threadPoolForGet

      public String threadPoolForGet()
      Returns:
      Name of the thread pool that get operations should use
    • threadPoolForSearch

      public String threadPoolForSearch()
      Returns:
      Name of the thread pool that search operations should use
    • threadPoolForWrite

      public String threadPoolForWrite()
      Returns:
      Name of the thread pool that write operations should use