Skip to content

Commit

Permalink
Javadoc for getNodesByRole
Browse files Browse the repository at this point in the history
  • Loading branch information
patsonluk committed Jul 25, 2023
1 parent b8f6fe2 commit c1518aa
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,13 @@ public SolrParams getParams() {

}

/**
* Gets the list of nodes by its NodeRole. If NodeRole is not supported, then return all nodes.
*
* Take note that currently only ExternalSolrNode has support for NodeRole.
* @param role
* @return
*/
public List<? extends SolrNode> getNodesByRole(NodeRole role) {
return nodesByRole.containsKey(role) ? nodesByRole.get(role) : nodes;
}
Expand Down

0 comments on commit c1518aa

Please sign in to comment.