Aller au contenu principal
Version: Next

abstractAbstractForkManager <Worker, ClusterOptions>

Hierarchy

Index

Properties

readonlyoptions

options: ClusterOptions

Methods

abstractbindWorkerDisconnect

  • bindWorkerDisconnect(listener: (worker: Worker) => void): void

abstractbindWorkerExit

  • bindWorkerExit(listener: (worker: Worker, code: any, signal: any) => void): void

abstractcloseWorker

  • closeWorker(worker: Worker): any

abstractcreateEventBus

  • createEventBus(eventBusOptions: EventBusOptions<Worker>): IEventBus<Worker>

abstractcreateWorker

  • createWorker(oldWorker?: Worker): Worker

publicgetWorker

  • getWorker(workerId: string): Worker

abstractgetWorkerId

  • getWorkerId(worker: Worker): string

publicgetWorkerIds

  • getWorkerIds(): string[]

publichasWorker

  • hasWorker(workerId: string): boolean

abstractisPrimary

  • isPrimary(): boolean

abstractisWorkerDead

  • isWorkerDead(worker: Worker): boolean

publiconStop

  • onStop(exitListener: any): void

publicstart

  • start(): Promise<void>

publicstop

  • stop(timeout?: number): Promise<void>