public Set < String > getServers ( Collection < String > iClusterNames ) { if ( iClusterNames == null || iClusterNames . isEmpty ( ) ) return getAllConfiguredServers ( ) ; final Set < String > partitions = new HashSet < String > ( iClusterNames . size ( ) ) ; for ( String p : iClusterNames ) { final List < String > serverList = getClusterConfiguration ( p ) . field ( SERVERS ) ; if ( serverList != null ) { for ( String s : serverList ) if ( ! s . equals ( NEW_NODE_TAG ) ) partitions . add ( s ) ; } } return partitions ; }
Returns the set of server names involved on the passed cluster collection .