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
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
ConstructorDescriptionMetadataRolloverService
(ThreadPool threadPool, MetadataCreateIndexService createIndexService, MetadataIndexAliasesService indexAliasesService, IndexNameExpressionResolver indexNameExpressionResolver, 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, boolean silent, boolean onlyValidate) void
validateIndexName
(ClusterState state, String index)
-
Field Details
-
HIDDEN_INDEX_SETTINGS
-
-
Constructor Details
-
MetadataRolloverService
@Inject public MetadataRolloverService(ThreadPool threadPool, MetadataCreateIndexService createIndexService, MetadataIndexAliasesService indexAliasesService, IndexNameExpressionResolver indexNameExpressionResolver, SystemIndices systemIndices)
-
-
Method Details
-
rolloverClusterState
public MetadataRolloverService.RolloverResult rolloverClusterState(ClusterState currentState, String rolloverTarget, String newIndexName, CreateIndexRequest createIndexRequest, List<Condition<?>> metConditions, boolean silent, boolean onlyValidate) throws Exception - Throws:
Exception
-
validateIndexName
-
resolveRolloverNames
public 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
-