The main module of the systems
executive.
This module is responsible for registering the service endpoints during the startup process.
This module holds the implementation of startup()
and shutdown()
functions of the executive, that are responsible for doing the maintenance functions during the shutdown process of the application, e.g. registering service endpoints, initializing/closing database connections, and so on.
Methods
(inner) shutdown(container, next)
The shutdown function of the service adapter
This function should be registered with the shutdown phase, then npac will call when graceful shutdown happens.
Parameters:
Name | Type | Description |
---|---|---|
container |
Object | The actual state of the container this adapter is running |
next |
function | Error-first callback function to pass the result partial container extended with the pdmsHemera adapter. see also: the |
(inner) startup(container, next)
The startup function of the adapter
This function should be registered with the startup phase, then npac will call when the project is starting.
Parameters:
Name | Type | Description |
---|---|---|
container |
Object | The actual state of the container this adapter will be added |
next |
function | Error-first callback function to pass the result partial container extended with the pdmsHemera adapter. see also: the |