nl_tokens: / * The constructor has no required parameters . Optional parameters :
pl_tokens: function Master ( options ) { /*jshint maxcomplexity: 12 */ options = options || { } ; this . _workers = { } ; this . shuttingDown = false ; this . spinTimeout = options . spinTimeout || 10 * 1000 ; util . verifyType ( 'number' , this , 'spinTimeout' ) ; this . delayStart = options . delayStart || 60 * 1000 ; util . verifyType ( 'number' , this , 'delayStart' ) ; this . pollInterval = options . pollInterval || 500 ; util . verifyType ( 'number' , this , 'pollInterval' ) ; this . killTimeout = options . killTimeout || 7000 ; util . verifyType ( 'number' , this , 'killTimeout' ) ; this . numberWorkers = options . numberWorkers || parseInt ( process . env . THEHELP_NUMBER_WORKERS , 10 ) || 1 ; util . verifyType ( 'number' , this , 'numberWorkers' ) ; this . setGraceful ( options . graceful || Graceful . instance ) ; this . log = options . log || logShim ( 'thehelp-cluster:master' ) ; util . verifyLog ( options . log ) ; this . _cluster = options . _cluster || cluster ; this . _cluster . on ( 'disconnect' , this . _restartWorker . bind ( this ) ) ; if ( Master . instance ) { this . <mask> . warn ( 'More than one Master instance created in this process. ' + 'You\'ll have more worker processes than you signed up for!' ) ; } Master . instance = this ; }