Lines Matching defs:cluster
16 const Worker = require('internal/cluster/worker');
17 const { internal, sendHelper } = require('internal/cluster/utils');
21 const cluster = new EventEmitter();
26 module.exports = cluster;
28 cluster.isWorker = true;
29 cluster.isMaster = false; // Deprecated alias. Must be same as isPrimary.
30 cluster.isPrimary = false;
31 cluster.worker = null;
32 cluster.Worker = Worker;
34 cluster._setupWorker = function() {
41 cluster.worker = worker;
65 cluster._getServer = function(obj, options, cb) {
121 cluster.worker.state = 'listening';