Options
All
  • Public
  • Public/Protected
  • All
Menu

Class System<T>

Type parameters

Hierarchy

  • System

Implements

Index

Constructors

constructor

Properties

components

components: T

graph

graph: DGraph<keyof T>

topology

topology: keyof T[]

Methods

reset

  • reset(): Promise<boolean>
  • Syntax sugar for stop() && start() sequence.

    Returns Promise<boolean>

start

  • start(): Promise<boolean>
  • Initializes all system components in dependency order. If any component's start() method returns false, system start up will be stopped and this method returns false itself.

    Also any errors thrown during child component startup will not be intercepted.

    Returns Promise<boolean>

stop

  • stop(): Promise<boolean>
  • Stops all system components in reverse dependency order. If any component's stop() method returns false, a warning message will be logged, but unlike System.start, the shutdown process of other components will not be stopped.

    Any errors thrown during child component shutdown will not be intercepted.

    Returns Promise<boolean>

Generated using TypeDoc