Documentation should be done
This commit is contained in:
@@ -32,28 +32,40 @@ type InterfaceConnectionEntry<ConfigInterface> = {
|
||||
* @remarks
|
||||
* Here are all Interface Servers and Connectors are created and managed.
|
||||
* Also every request is handled here.
|
||||
* @public
|
||||
*/
|
||||
export default class MultiMessageBroker {
|
||||
/**
|
||||
* MMB singleton instance
|
||||
* @private
|
||||
*/
|
||||
private static instance: MultiMessageBroker|null = null;
|
||||
|
||||
/**
|
||||
* Whether the broker is prepared.
|
||||
* @private
|
||||
*/
|
||||
private prepared: boolean = false;
|
||||
|
||||
/**
|
||||
* All registered AASs.
|
||||
* @private
|
||||
*/
|
||||
private aasRegistrations: AASRegistrationPrepared[] = [];
|
||||
/**
|
||||
* All registered Interface Connectors.
|
||||
* @private
|
||||
*/
|
||||
private interfaceConnections: InterfaceConnectionEntry<any>[] = [];
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
private constructor() {}
|
||||
|
||||
/**
|
||||
* Get the singleton instance of the broker.
|
||||
* @public
|
||||
*/
|
||||
public static getInstance(): MultiMessageBroker {
|
||||
if (this.instance === null) this.instance = new MultiMessageBroker();
|
||||
@@ -215,6 +227,7 @@ export default class MultiMessageBroker {
|
||||
/**
|
||||
* Callback on a connector event.
|
||||
* @param response
|
||||
* @alpha
|
||||
*/
|
||||
private onConnectorEvent(response: any) {
|
||||
for (const aas of this.aasRegistrations) {
|
||||
|
||||
Reference in New Issue
Block a user