Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

  • Process

Index

Constructors

constructor

Properties

_startingParams

_startingParams: {}

Type declaration

  • [key: string]: any

bootTime

bootTime: number

initialized

initialized: boolean

initializers

initializers: Initializers

loadInitializers

loadInitializers: Function[]

running

running: boolean

shuttingDown

shuttingDown: boolean

startCount

startCount: number

startInitializers

startInitializers: Function[]

started

started: boolean

stopInitializers

stopInitializers: Function[]

Optional stopReasons

stopReasons?: string[]

stopped

stopped: boolean

Methods

fatalError

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

flattenOrderedInitializer

  • flattenOrderedInitializer(collection: any): any[]

initialize

  • initialize(params?: object): 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(params?: {}): Promise<void>

stop

  • stop(stopReasons?: string | string[]): Promise<void>

Generated using TypeDoc