Class MetadataRolloverService
java.lang.Object
org.elasticsearch.action.admin.indices.rollover.MetadataRolloverService
Service responsible for handling rollover requests for write aliases and data streams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetadataRolloverService(ThreadPool threadPool, MetadataCreateIndexService createIndexService, MetadataIndexAliasesService indexAliasesService, SystemIndices systemIndices) -
Method Summary
Modifier and TypeMethodDescriptionresolveRolloverNames(ClusterState currentState, String rolloverTarget, String newIndexName, CreateIndexRequest createIndexRequest) Returns the names that rollover would use, but does not perform the actual rolloverrolloverClusterState(ClusterState currentState, String rolloverTarget, String newIndexName, CreateIndexRequest createIndexRequest, List<Condition<?>> metConditions, Instant now, boolean silent, boolean onlyValidate) static voidvalidateIndexName(ClusterState state, String index)
-
Field Details
-
HIDDEN_INDEX_SETTINGS
-
-
Constructor Details
-
MetadataRolloverService
@Inject public MetadataRolloverService(ThreadPool threadPool, MetadataCreateIndexService createIndexService, MetadataIndexAliasesService indexAliasesService, SystemIndices systemIndices)
-
-
Method Details
-
rolloverClusterState
public MetadataRolloverService.RolloverResult rolloverClusterState(ClusterState currentState, String rolloverTarget, String newIndexName, CreateIndexRequest createIndexRequest, List<Condition<?>> metConditions, Instant now, boolean silent, boolean onlyValidate) throws Exception - Throws:
Exception
-
validateIndexName
-
resolveRolloverNames
public static MetadataRolloverService.NameResolution resolveRolloverNames(ClusterState currentState, String rolloverTarget, String newIndexName, CreateIndexRequest createIndexRequest) Returns the names that rollover would use, but does not perform the actual rollover
-