Module org.elasticsearch.server
Class ClusterNameExpressionResolver
java.lang.Object
org.elasticsearch.cluster.metadata.ClusterNameExpressionResolver
Resolves cluster names from an expression. The expression must be the exact match of a cluster
 name or must be a wildcard expression.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
ClusterNameExpressionResolverpublic ClusterNameExpressionResolver()
 
- 
- 
Method Details- 
resolveClusterNamespublic static List<String> resolveClusterNames(Set<String> remoteClusters, String clusterExpression) Resolves the provided cluster expression to matching cluster names. Supports exact or wildcard matches. ThrowsNoSuchRemoteClusterExceptionin case there are no registered remote clusters matching the provided expression.- Parameters:
- remoteClusters- the aliases for remote clusters
- clusterExpression- the expressions that can be resolved to cluster names.
- Returns:
- the resolved cluster aliases.
- Throws:
- NoSuchRemoteClusterException- if there are no remote clusters matching the provided expression
 
 
-