Package org.elasticsearch.indices
Class TestIndexNameExpressionResolver
java.lang.Object
org.elasticsearch.indices.TestIndexNameExpressionResolver
A utility class that simplifies the creation of
IndexNameExpressionResolver
instances in tests to avoid repetition of
creating the constructor arguments for a default instance.-
Method Summary
Modifier and TypeMethodDescriptionstatic org.elasticsearch.cluster.metadata.IndexNameExpressionResolver
static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver
newInstance(org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver
newInstance(org.elasticsearch.indices.SystemIndices systemIndices)
-
Method Details
-
newInstance
public static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver newInstance()- Returns:
- a new instance of a
IndexNameExpressionResolver
that has been created with a newThreadContext
and the defaultSystemIndices
instance
-
newInstance
public static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver newInstance(org.elasticsearch.common.util.concurrent.ThreadContext threadContext)- Returns:
- a new instance of a
IndexNameExpressionResolver
that has been created with the providedThreadContext
and the defaultSystemIndices
instance
-
newInstance
public static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver newInstance(org.elasticsearch.indices.SystemIndices systemIndices)- Returns:
- a new instance of a
IndexNameExpressionResolver
that has been created with a newThreadContext
and the providedSystemIndices
instance
-