Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

  • Process

Index

Constructors

constructor

Properties

bootTime

bootTime: number

initialized

initialized: boolean

initializers

initializers: Initializers

loadInitializers

loadInitializers: (() => Promise<void>)[]

running

running: boolean

shuttingDown

shuttingDown: boolean

startCount

startCount: number

startInitializers

startInitializers: (() => Promise<void>)[]

started

started: boolean

stopInitializers

stopInitializers: (() => Promise<void>)[]

Optional stopReasons

stopReasons?: string[]

stopped

stopped: boolean

Methods

fatalError

  • fatalError(errors?: ErrnoException | ErrnoException[], type: string): Promise<void>

flattenOrderedInitializer

  • flattenOrderedInitializer<T>(collection: {}): T[]

initialize

  • initialize(): Promise<void>

registerProcessSignals

  • registerProcessSignals(stopCallback?: (exitCode?: number) => void): void
  • Register listeners for process signals and uncaught exceptions & rejections. Try to gracefully shut down when signaled to do so

    Parameters

    • stopCallback: (exitCode?: number) => void = ...
        • (exitCode?: number): void
        • Parameters

          • Optional exitCode: number

          Returns void

    Returns void

restart

  • restart(): Promise<void>

start

  • start(): Promise<void>

stop

  • stop(stopReasons?: string | string[]): Promise<void>
  • Stop the Actionhero Process

    Parameters

    • stopReasons: string | string[] = []

    Returns Promise<void>

Generated using TypeDoc