@Override
  public int getAvailableNodes(final Collection<String> iNodes, final String databaseName) {
    """
	Returns the available nodes (not offline) and clears the node list by removing the offline nodes.
    """
    for (Iterator<String> it = iNodes.iterator(); it.hasNext(); ) {
      final String node = it.next();

      if (!isNodeAvailable(node, databaseName))
        it.remove();
    }
    return iNodes.size();
  }
@Override
  public int getAvailableNodes(final Collection<String> iNodes, final String databaseName) {
    for (Iterator<String> it = iNodes.iterator(); it.hasNext(); ) {
      final String node = it.next();

      if (!isNodeAvailable(node, databaseName))
        it.remove();
    }
    return iNodes.size();
  }
@ Override public int getAvailableNodes ( final Collection < String > iNodes , final String databaseName ) { for ( Iterator < String > it = iNodes . iterator ( ) ; it . hasNext ( ) ; ) { final String node = it . next ( ) ; if ( ! isNodeAvailable ( node , databaseName ) ) it . remove ( ) ; } return iNodes . size ( ) ; }
Returns the available nodes (not offline) and clears the node list by removing the offline nodes.
Returns the available nodes ( not offline ) and clears the node list by removing the offline nodes .