Class

ClusterHandler

ClusterHandler()

Constructor

# new ClusterHandler()

View Source index.js, line 12

Methods

# async onDeath(worker) → {void}

Parameters:
Name Type Description
worker cluster.Worker
Deprecated:
  • Yes

View Source index.js, line 186

void

# async onDisconnect(worker) → {void}

Parameters:
Name Type Description
worker cluster.Worker

View Source index.js, line 171

void

# async onError(worker, recoveryopt) → {void}

Parameters:
Name Type Attributes Default Description
worker cluster.Worker
recovery boolean <optional>
false

View Source index.js, line 202

void

# async onExit(worker, code, sig) → {void}

Parameters:
Name Type Description
worker cluster.Worker
code number
sig string

View Source index.js, line 156

void

# async onListening(worker, address) → {void}

Parameters:
Name Type Description
worker cluster.Worker
address cluster.Address

View Source index.js, line 114

void

# onMasterMessage(worker, message, handleopt) → {void}

Parameters:
Name Type Attributes Description
worker cluster.Worker
message any
handle net.Socket | net.Server <optional>

View Source index.js, line 82

void

# onMessage(worker, message, handleopt) → {void}

Parameters:
Name Type Attributes Description
worker cluster.Worker
message any
handle net.Socket | net.Server <optional>

View Source index.js, line 42

void

# onOnline(worker) → {void}

Parameters:
Name Type Description
worker cluster.Worker

View Source index.js, line 98

void

# async onSetup(settings) → {void}

Parameters:
Name Type Description
settings cluster.ClusterSettings

View Source index.js, line 134

void

# onWorkerMessage(worker, message, handleopt) → {void}

Parameters:
Name Type Attributes Description
worker cluster.Worker
message any
handle net.Socket | net.Server <optional>

View Source index.js, line 64

void

# recover() → {cluster.Worker}

View Source index.js, line 221

cluster.Worker

# registerHandler() → {cluster}

View Source index.js, line 23

cluster