kronos-service-manager
kronos service manger
API Reference
Promise
loadFlowFromFile(fileName) ⇒ Load a flow from a file
Kind: global function
Returns: Promise
- of the loaded flow
Param | Type |
---|---|
fileName | string |
Promise
willBeUnregistered() ⇒ 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
Promise
manager(config, [modules]) ⇒ 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 |
Promise
ServiceManager._stop() ⇒ 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