Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Process

Hierarchy

  • Process

Index

Constructors

constructor

  • Returns Process

Properties

_startingParams

_startingParams: {}

Type declaration

  • [key: string]: any

bootTime

bootTime: number

initialized

initialized: boolean

initializers

initializers: Initializers

loadInitializers

loadInitializers: Array<Function>

running

running: boolean

shuttingDown

shuttingDown: boolean

startCount

startCount: number

startInitializers

startInitializers: Array<Function>

stopInitializers

stopInitializers: Array<Function>

Methods

fatalError

  • fatalError(errors: any, type: any): Promise<void>
  • Parameters

    • errors: any
    • type: any

    Returns Promise<void>

flattenOrderedInitializer

  • flattenOrderedInitializer(collection: any): any[]
  • Parameters

    • collection: any

    Returns any[]

initialize

  • initialize(params?: object): Promise<void>
  • Parameters

    • Default value params: object = {}

    Returns Promise<void>

registerProcessSignals

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

    Parameters

    • Default value stopCallback: (Anonymous function) = (exitCode?: number) => {}

    Returns void

restart

  • restart(): Promise<void>
  • Returns Promise<void>

start

  • start(params?: {}): Promise<void>
  • Parameters

    • Default value params: {} = {}

    Returns Promise<void>

stop

  • stop(): Promise<void>
  • Returns Promise<void>

Generated using TypeDoc