SHPS4Node-init

1.0.0 • Public • Published

SHPS4Node-init

SHPS4Node Init/Terminate Lifecycle System Module

Interface

class Init {

    /**
     * The Init Module initializes itself on creation
     */
    constructor() {

        Init.init();
    }

    /**
     * Initialize all SHPS modules
     *
     * @result QPromise
     */
    boot() { throw 'Not Implemented'; }

    /**
     * Shuts SHPS down
     * !!! ATTENTION !!!
     * SHPS will stop! It will no longer serve any content and it will not restart on its own
     * Only call this method when you really want to exit SHPS
     * Don't come running the me. I warned you!
     *
     * @result QPromise
     */
    shutdown() { throw 'Not Implemented'; }

    /**
     * Initializes this module
     * Must safely initialize the module, even after restarts
     * Attention: Module might not work when not initialized
     *
     * @result QPromise
     */
    static init() { throw 'Not Implemented'; }

    /**
     * Shuts the module down
     * Must safely shut down the module so that it works even when restarted
     * Attention: Module might not work when shut down!
     *
     * @result QPromise
     */
    static halt() { throw 'Not Implemented'; }
};

Readme

Keywords

none

Package Sidebar

Install

npm i SHPS4Node-init

Weekly Downloads

2

Version

1.0.0

License

none

Last publish

Collaborators

  • maruru