lib/gearman/multiserver-client.js
function MultiserverClient(servers, options) {
  options = options || {};
  Multiserver.call(this, servers, function(server) {
    return new gearman.Client({
      host: server.host,
      port: server.port,
      debug: options.debug || false
    });
  }, Multiserver.component_prefix(options.component_name) + 'client');
  this._rr_index = -1;    // round robin index
}
function MultiserverClient(servers, options) {
  options = options || {};
  Multiserver.call(this, servers, function(server) {
    return new gearman.Client({
      host: server.host,
      port: server.port,
      debug: options.debug || false
    });
  }, Multiserver.component_prefix(options.component_name) + 'client');
  this._rr_index = -1;    // round robin index
}
function MultiserverClient ( servers , options ) { options = options || { } ; Multiserver . call ( this , servers , function ( server ) { return new gearman . Client ( { host : server . host , port : server . port , debug : options . debug || false } ) ; } , Multiserver . component_prefix ( options . component_name ) + 'client' ) ; this . _rr_index = - 1 ; // round robin index }
A gearman client that supports multiple servers.
Contains multiple gearman-coffee clients that are each
connected to a different server. The client which submits a job
is selected with round robin.

Servers are provided in an array of json-objects, possible fields are:
`.host`:    a string that identifies a gearman job server host
`.port`:    an integer that identifies a geaerman job server port
`._debug`:   a boolean that tells whether debug mode should be used

@param {[Object]} servers
@param {Object} options
@return {Object}
A gearman client that supports multiple servers . Contains multiple gearman - coffee clients that are each connected to a different server . The client which submits a job is selected with round robin .