Module org.elasticsearch.xcore
Package org.elasticsearch.xpack.core.ilm
Class LifecyclePolicyUsageCalculator
java.lang.Object
org.elasticsearch.xpack.core.ilm.LifecyclePolicyUsageCalculator
A class that can be used to calculate the usages of ILM policies across the cluster. By precomputing all the usages,
the class makes a tradeoff by using a little bit more memory to significantly improve the overall processing time.
-
Constructor Summary
ConstructorsConstructorDescriptionLifecyclePolicyUsageCalculator(IndexNameExpressionResolver indexNameExpressionResolver, ProjectMetadata project, List<String> requestedPolicyNames) -
Method Summary
Modifier and TypeMethodDescriptionretrieveCalculatedUsage(String policyName) Retrieves the pre-calculated indices, data streams, and composable templates that use the given policy.
-
Constructor Details
-
LifecyclePolicyUsageCalculator
public LifecyclePolicyUsageCalculator(IndexNameExpressionResolver indexNameExpressionResolver, ProjectMetadata project, List<String> requestedPolicyNames)
-
-
Method Details
-
retrieveCalculatedUsage
Retrieves the pre-calculated indices, data streams, and composable templates that use the given policy.
-