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 IndexNameExpressionResolverstatic IndexNameExpressionResolvernewInstance(ProjectResolver projectResolver) static IndexNameExpressionResolvernewInstance(ThreadContext threadContext) static IndexNameExpressionResolvernewInstance(ThreadContext threadContext, SystemIndices systemIndices) static IndexNameExpressionResolvernewInstance(SystemIndices systemIndices) static IndexNameExpressionResolvernewInstance(SystemIndices systemIndices, ProjectResolver projectResolver)
-
Method Details
-
newInstance
- Returns:
- a new instance of a
IndexNameExpressionResolverthat has been created with a newThreadContextand the defaultSystemIndicesinstance
-
newInstance
-
newInstance
- Returns:
- a new instance of a
IndexNameExpressionResolverthat has been created with the providedThreadContextand the defaultSystemIndicesinstance
-
newInstance
- Returns:
- a new instance of a
IndexNameExpressionResolverthat has been created with a newThreadContextand the providedSystemIndicesinstance
-
newInstance
public static IndexNameExpressionResolver newInstance(ThreadContext threadContext, SystemIndices systemIndices) - Returns:
- a new instance of a
IndexNameExpressionResolverthat has been created with the providedThreadContextandSystemIndicesinstances
-
newInstance
public static IndexNameExpressionResolver newInstance(SystemIndices systemIndices, ProjectResolver projectResolver) - Returns:
- a new instance of a
IndexNameExpressionResolverthat has been created with a newThreadContext, the providedSystemIndicesinstance, and the providedProjectResolver
-