API Docs for: 0.8.0
Show:

System Class

Module: Session

Constructor

System

(
  • pb
)

Parameters:

  • pb Object

    The PencilBlue namespace

Methods

onStart

(
  • onChildRunning
)

Parameters:

  • onChildRunning Function

registerSignalHandlers

(
  • [killProcess]
)

Registers signal handlers (SIGTERM, SIGINT) that will call shutdown when triggered

Parameters:

  • [killProcess] Boolean optional

    When TRUE or not provided the variable instructs the handlers to kill off the process in addition to shutting down PencilBlue services

shutdown

(
  • [killProcess=true]
)

Calls shutdown on all registered system services and kills the process

Parameters:

  • [killProcess=true] Boolean optional

Properties

Object private static

DISCONNECTS

Array private

DISCONNECTS_CNT

Integer private

FORCE_PROCESS_EXIT_TIMEOUT

Array private

IS_SHUTTING_DOWN

Boolean private

SHUTDOWN_PRIORITY

Array private