Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MasterComponent

Master component class

param

current application context

Hierarchy

  • MasterComponent

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

master

master: MasterServer

name

name: string = "__master__"

Methods

start

  • start(cb: function): void
  • Component lifecycle function

    Parameters

    • cb: function
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void

stop

  • stop(force: boolean, cb: function): void
  • Component lifecycle function

    Parameters

    • force: boolean

      whether stop the component immediately

    • cb: function
        • (err?: Error): void
        • Parameters

          • Optional err: Error

          Returns void

    Returns void