Class ClusterNameExpressionResolver
java.lang.Object
org.elasticsearch.cluster.metadata.ClusterNameExpressionResolver
public final class ClusterNameExpressionResolver
extends java.lang.Object
Resolves cluster names from an expression. The expression must be the exact match of a cluster
name or must be a wildcard expression.
-
Constructor Summary
Constructors Constructor Description ClusterNameExpressionResolver()
-
Method Summary
Modifier and Type Method Description java.util.List<java.lang.String>
resolveClusterNames(java.util.Set<java.lang.String> remoteClusters, java.lang.String clusterExpression)
Resolves the provided cluster expression to matching cluster names.
-
Constructor Details
-
ClusterNameExpressionResolver
public ClusterNameExpressionResolver()
-
-
Method Details
-
resolveClusterNames
public java.util.List<java.lang.String> resolveClusterNames(java.util.Set<java.lang.String> remoteClusters, java.lang.String clusterExpression)Resolves the provided cluster expression to matching cluster names. This method only supports exact or wildcard matches.- Parameters:
remoteClusters
- the aliases for remote clustersclusterExpression
- the expressions that can be resolved to cluster names.- Returns:
- the resolved cluster aliases.
-