lib/daemon/runner.js
function Runner(conf) {
  component.Component.call(this, 'runner', conf);
  var that = this;
  this._default_controller = defaults.controllerfuncname(conf);
  this._dbconn = conf.dbconn;
  this.registerGearman(conf.servers, { client: true });
  this.on('connect', function() {
    that.startPolling();
  });
  this.on('disconnect', function() {
    if (that.db_poll_stop)
      that.db_poll_stop();
  });
}
function Runner(conf) {
  component.Component.call(this, 'runner', conf);
  var that = this;
  this._default_controller = defaults.controllerfuncname(conf);
  this._dbconn = conf.dbconn;
  this.registerGearman(conf.servers, { client: true });
  this.on('connect', function() {
    that.startPolling();
  });
  this.on('disconnect', function() {
    if (that.db_poll_stop)
      that.db_poll_stop();
  });
}
function Runner ( conf ) { component . Component . call ( this , 'runner' , conf ) ; var that = this ; this . _default_controller = defaults . controllerfuncname ( conf ) ; this . _dbconn = conf . dbconn ; this . registerGearman ( conf . servers , { client : true } ) ; this . on ( 'connect' , function ( ) { that . startPolling ( ) ; } ) ; this . on ( 'disconnect' , function ( ) { if ( that . db_poll_stop ) that . db_poll_stop ( ) ; } ) ; }
Runner component. Emits 'connect' when at least one server is connected.
Runner component . Emits connect when at least one server is connected .