Class MetadataRolloverService
java.lang.Object
org.elasticsearch.action.admin.indices.rollover.MetadataRolloverService
public class MetadataRolloverService
extends java.lang.Object
Service responsible for handling rollover requests for write aliases and data streams
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataRolloverService.NameResolutionstatic classMetadataRolloverService.RolloverResult -
Constructor Summary
Constructors Constructor Description MetadataRolloverService(ThreadPool threadPool, MetadataCreateIndexService createIndexService, MetadataIndexAliasesService indexAliasesService, IndexNameExpressionResolver indexNameExpressionResolver, SystemIndices systemIndices) -
Method Summary
Modifier and Type Method Description MetadataRolloverService.NameResolutionresolveRolloverNames(ClusterState currentState, java.lang.String rolloverTarget, java.lang.String newIndexName, CreateIndexRequest createIndexRequest)Returns the names that rollover would use, but does not perform the actual rolloverMetadataRolloverService.RolloverResultrolloverClusterState(ClusterState currentState, java.lang.String rolloverTarget, java.lang.String newIndexName, CreateIndexRequest createIndexRequest, java.util.List<Condition<?>> metConditions, boolean silent, boolean onlyValidate)voidvalidateIndexName(ClusterState state, java.lang.String index)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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, java.lang.String rolloverTarget, java.lang.String newIndexName, CreateIndexRequest createIndexRequest, java.util.List<Condition<?>> metConditions, boolean silent, boolean onlyValidate) throws java.lang.Exception- Throws:
java.lang.Exception
-
validateIndexName
-
resolveRolloverNames
public MetadataRolloverService.NameResolution resolveRolloverNames(ClusterState currentState, java.lang.String rolloverTarget, java.lang.String newIndexName, CreateIndexRequest createIndexRequest)Returns the names that rollover would use, but does not perform the actual rollover
-