Package org.elasticsearch.indices
Class ExecutorNames
org.elasticsearch.indices.ExecutorNames
public class ExecutorNames
extends
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
ConstructorDescriptiongetPoolName, searchPoolName, writePoolName)
Create a new collection of thread pool names for a system descriptor to use. -
Method Summary
Methods inherited from class java.lang.
, , , , , , , , , ,
-
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
public ExecutorNames( getPoolName, searchPoolName, 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 threadPoolForGet()- Returns:
- Name of the thread pool that get operations should use
-
threadPoolForSearch
public threadPoolForSearch()- Returns:
- Name of the thread pool that search operations should use
-
threadPoolForWrite
public threadPoolForWrite()- Returns:
- Name of the thread pool that write operations should use
-