Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionHeroCluster

Hierarchy

  • ActionHeroCluster

Index

Constructors

constructor

Properties

flapCount

flapCount: number

flapTimer

flapTimer: Timeout

loggers

loggers: Array<Logger>

options

options: object

Type declaration

  • [key: string]: any

state

state: string

workers

workers: Array<ClusterWorker>

workersToRestart

workersToRestart: Array<number>

Methods

buildEnv

  • buildEnv(workerId: any): any

clearPidFile

  • clearPidFile(): void

configurePath

  • configurePath(p: any): Promise<boolean>

Private defaults

  • defaults(): object
  • Returns object

    • args: string
    • buildEnv: null
    • execPath: string
    • expectedWorkers: number
    • flapWindow: number
    • id: string
    • logFile: string
    • logPath: string
    • pidPath: string
    • pidfile: string
    • stopTimeout: number
    • workerTitlePrefix: string

log

  • log(message: any, severity: any): void

sleep

  • sleep(time: any): Promise<void>

sortWorkers

  • sortWorkers(): void

start

  • start(): Promise<void>

stop

  • stop(): Promise<void>

work

  • work(): void

writePidFile

  • writePidFile(): void

Generated using TypeDoc