The Node module is responsible for deploying (starting) and un-deploying (stopping) a group of modules to form an application.
Module based applications use the Node module to bootstrap and the application configuration file (in JSON format) is passed as is (after include and expansion) to the Node module which processes the modules part of the file.
This module is never deployed by configuration.
Configuration
Name
Description
Default
Mandatory
groups
List of module groups defining the order of deployment.
[
"first",
"system",
"authn",
"default",
"last"
]
modules
List of modules to deploy. If empty or non-existing no modules will be deployed.
A module object represent a module to deploy. All modules defines their own configuration, documented separately.
Module deployment order is defined by groups, all modules in the first group are deployed before modules in the next, and so on. If a module has no group defined it will be added to the default group.
Name
Description
Default
Mandatory
name
Module class name or alias
enabled
Flag controlling if module should be deployed or not
The heartbeat responder supports all HTTP module configuration properties and is started when all configured moduled has been successfully started (i.e. when the application is started and ready to receive requests).
Response
By default response is HTTP 200 with body OK. Content type is set to:
"text/plain; charset="utf-8""
If using a json file response is data from the json file with headers:
No data format kontrol is made by the server. It will assume json file.
By default the heartbeat responder uses the following URL:
http://<host-or-ip>:8080/heartbeat
Since the heartbeat configuration is used by the Node module, which serves as the default bootstrap module, it must be placed at the top level in config.json.
Name
Description
Default
Mandatory
enabled
Flag to enable heartbeat
false
http_listener
Name/id of theHTTP listener to use.
If not specified default settings will be used.
http_context
Responder base HTTP context.
"/heartbeat"
context_path
Responder HTTP context path.
This property is appended to http_context to form the full context ("path") of the responder.
"/*"
data_file
File path to json file to load. It will be read at each request. No cache.