Package org.elasticsearch.indices
Class ExecutorNames
java.lang.Object
org.elasticsearch.indices.ExecutorNames
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 Summary
Modifier and TypeFieldDescriptionstatic ExecutorNames
The thread pools that should be used for critical system index operations.static ExecutorNames
The thread pools for a typical system data stream.static ExecutorNames
The thread pools for a typical system index. -
Constructor Summary
ConstructorDescriptionExecutorNames(String getPoolName, String searchPoolName, String writePoolName)
Create a new collection of thread pool names for a system descriptor to use. -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
DEFAULT_SYSTEM_INDEX_THREAD_POOLS
The thread pools for a typical system index. -
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
The thread pools that should be used for critical system index operations.
-
-
Constructor Details
-
ExecutorNames
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
- Returns:
- Name of the thread pool that get operations should use
-
threadPoolForSearch
- Returns:
- Name of the thread pool that search operations should use
-
threadPoolForWrite
- Returns:
- Name of the thread pool that write operations should use
-