Package org.elasticsearch.indices
Class SystemDataStreamDescriptor
java.lang.Object
org.elasticsearch.indices.SystemDataStreamDescriptor
Describes a
DataStream
that is reserved for use by a system component. The data stream will be managed by the system and also
protected by the system against user modification so that system features are not broken by inadvertent user operations.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSystemDataStreamDescriptor
(String dataStreamName, String description, SystemDataStreamDescriptor.Type type, ComposableIndexTemplate composableIndexTemplate, Map<String, ComponentTemplate> componentTemplates, List<String> allowedElasticProductOrigins, ExecutorNames executorNames) Creates a new descriptor for a system data descriptor -
Method Summary
Modifier and TypeMethodDescriptiongetBackingIndexNames
(Metadata metadata) Retrieve backing indices for this system data streamGet the names of the thread pools that should be used for operations on this data stream.boolean
-
Constructor Details
-
SystemDataStreamDescriptor
public SystemDataStreamDescriptor(String dataStreamName, String description, SystemDataStreamDescriptor.Type type, ComposableIndexTemplate composableIndexTemplate, Map<String, ComponentTemplate> componentTemplates, List<String> allowedElasticProductOrigins, ExecutorNames executorNames) Creates a new descriptor for a system data descriptor- Parameters:
dataStreamName
- the name of the data stream. Must not benull
description
- a brief description of what the data stream is used for. Must not benull
type
- theSystemDataStreamDescriptor.Type
of the data stream which determines how the data stream can be accessed. Must not benull
composableIndexTemplate
- theComposableIndexTemplate
that contains the mappings and settings for the data stream. Must not benull
componentTemplates
- a map that containsComponentTemplate
instances corresponding to those references in theComposableIndexTemplate
allowedElasticProductOrigins
- a list of product origin values that are allowed to access this data stream if the type isSystemDataStreamDescriptor.Type.EXTERNAL
. Must not benull
executorNames
- thread pools that should be used for operations on the system data stream
-
-
Method Details
-
getDataStreamName
-
getBackingIndexNames
Retrieve backing indices for this system data stream- Parameters:
metadata
- Metadata in which to look for indices- Returns:
- List of names of backing indices
-
getDescription
-
getComposableIndexTemplate
-
isExternal
public boolean isExternal() -
getBackingIndexPattern
-
getAllowedElasticProductOrigins
-
getComponentTemplates
-
getThreadPoolNames
Get the names of the thread pools that should be used for operations on this data stream.- Returns:
- Names for get, search, and write executors.
-