lib/core/riaknode.js
function (addresses, options) {
    var riakNodes = [];

    if (options === undefined) {
        options = {};
    }

    for (var i = 0; i < addresses.length; i++) {
        var split = addresses[i].split(':');
        options.remoteAddress = split[0];
        if (split.length === 2) {
            options.remotePort = split[1];
        }
        riakNodes.push(new RiakNode(options));
    }

    return riakNodes;
}
function (addresses, options) {
    var riakNodes = [];

    if (options === undefined) {
        options = {};
    }

    for (var i = 0; i < addresses.length; i++) {
        var split = addresses[i].split(':');
        options.remoteAddress = split[0];
        if (split.length === 2) {
            options.remotePort = split[1];
        }
        riakNodes.push(new RiakNode(options));
    }

    return riakNodes;
}
function ( addresses , options ) { var riakNodes = [ ] ; if ( options === undefined ) { options = { } ; } for ( var i = 0 ; i < addresses . length ; i ++ ) { var split = addresses [ i ] . split ( ':' ) ; options . remoteAddress = split [ 0 ] ; if ( split . length === 2 ) { options . remotePort = split [ 1 ] ; } riakNodes . push ( new RiakNode ( options ) ) ; } return riakNodes ; }
Static factory for constructing a set of RiakNodes.

To create a set of RiakNodes with the same options:

var options = new RiakNode.Builder().withMinConnections(10);
var nodes = RiakNode.buildNodes(['192.168.1.1', '192.168.1.2'], options);

__options__ can be manually constructed or an instance of the Builder.

@static
@method buildNodes
@param {String[]} addresses - an array of IP|hostname[:port]
@param {Object} [options] - the options to use for all RiakNodes.
@return {Array/RiakNode}
Static factory for constructing a set of RiakNodes .