kronos-service-manager
v3.5.10
Published
kronos service manger
Downloads
72
Readme
kronos-service-manager
kronos service manger
API Reference
loadFlowFromFile(fileName) ⇒ Promise
Load a flow from a file
Kind: global function
Returns: Promise - of the loaded flow
| Param | Type | | --- | --- | | fileName | string |
willBeUnregistered() ⇒ Promise
Deletes a flow from the stored flow definitions. If the flow is currently running, it will be stopped first. After it is stopped, it will be deleted.
Kind: global function
Returns: Promise - returns a promise that is fullfilled when the flow is removed
or one that rejects if there is no flow for the given flowName
manager(config, [modules]) ⇒ Promise
creates a kronos service manager.
Kind: global function
Returns: Promise - a promise with the service manager as its value
| Param | Type | Description | | --- | --- | --- | | config | Array.<object> | separated for each service | | [modules] | Array.<string> | modules to register with registerWithManager |
ServiceManager._stop() ⇒ Promise
Stops execution and frees all used resources. It will stop each flow. Then stop all services
Kind: instance method of ServiceManager
Returns: Promise - that fullfills when the manager has stopped
install
With npm do:
npm install kronos-service-manager
Browse available services, interceptors and steps.
license
BSD-2-Clause