BusNodeFeature
Extends:
Node feature: manages a bus.
Example:
Bus engine format:
{
package:'default' or 'my bus engine NPM package',
type:'Server' or 'Client',
protocole:'http' or 'https,
host:'...',
port:'...',
settings:{} // optional
}
Constructor Summary
Public Constructor | ||
public |
constructor(arg_node: Node, arg_name: string): nothing Create a BusNodefeature instance. |
Member Summary
Public Members | ||
public |
bus: MessageBus Feature bus instance. |
|
public |
Class type flag. |
Method Summary
Public Methods | ||
public |
create_bus_engine(arg_package: string, arg_name: string, arg_settings: object): BusEngine Create a bus engine. |
|
public |
create_message_bus(): MessageBus Create bus from settings. |
|
public |
Get bus name. |
|
public |
load(): nothing Load Node settings. |
|
public |
start(): nothing Starts node bus. |
|
public |
stop(): nothing Stops node bus. |
Inherited Summary
From class NodeFeature | ||
public |
Class type flag. |
|
public |
Is ready flag. |
|
public |
Feature name. |
|
public |
Node instance. |
|
public |
Get feature name. |
|
public abstract |
load(): nothing Load Node settings. |
|
public abstract |
start(): nothing Starts node feature. |
|
public abstract |
stop(): nothing Stops node feature. |
Public Constructors
Public Members
Public Methods
public create_bus_engine(arg_package: string, arg_name: string, arg_settings: object): BusEngine source
Create a bus engine.
Return:
BusEngine | Bus engine instance |
public create_message_bus(): MessageBus source
Create bus from settings.
Return:
MessageBus | created bus messages. |