Package org.elasticsearch.indices
Class TestIndexNameExpressionResolver
java.lang.Object
org.elasticsearch.indices.TestIndexNameExpressionResolver
public class TestIndexNameExpressionResolver
extends java.lang.Object
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 Type Method Description static org.elasticsearch.cluster.metadata.IndexNameExpressionResolver
newInstance()
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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-