|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Abstract interface for external system integration bridges. More...
#include <bridge_interface.h>


Public Member Functions | |
| virtual | ~INetworkBridge ()=default |
| virtual VoidResult | initialize (const BridgeConfig &config)=0 |
| Initialize the bridge with configuration. | |
| virtual VoidResult | shutdown ()=0 |
| Shutdown the bridge and release resources. | |
| virtual bool | is_initialized () const =0 |
| Check if the bridge is initialized and ready for use. | |
| virtual BridgeMetrics | get_metrics () const =0 |
| Get current metrics and health information. | |
Abstract interface for external system integration bridges.
This interface defines the contract for all integration bridges in network_system. Each bridge provides a consistent way to:
Lifecycle:
Thread Safety:
Error Handling:
Definition at line 163 of file bridge_interface.h.
|
virtualdefault |
|
pure virtual |
Get current metrics and health information.
This method returns health and performance metrics for the bridge. It should be lightweight and suitable for frequent polling.
Thread Safety: Must be safe to call concurrently from multiple threads
Example:
Implemented in kcenon::network::integration::messaging_bridge, kcenon::network::integration::ObservabilityBridge, and kcenon::network::integration::ThreadPoolBridge.
|
pure virtual |
Initialize the bridge with configuration.
| config | Configuration parameters for the bridge |
This method must be called before using the bridge. Initialization sets up the external system integration according to the provided configuration.
Error Conditions:
Example:
Implemented in kcenon::network::integration::messaging_bridge, kcenon::network::integration::ObservabilityBridge, and kcenon::network::integration::ThreadPoolBridge.
|
pure virtual |
Check if the bridge is initialized and ready for use.
This method provides a quick way to check if the bridge has been successfully initialized and is ready for operation.
Returns false if:
Example:
Implemented in kcenon::network::integration::messaging_bridge, kcenon::network::integration::ObservabilityBridge, and kcenon::network::integration::ThreadPoolBridge.
|
pure virtual |
Shutdown the bridge and release resources.
This method should be called before destroying the bridge. It gracefully shuts down the external system integration and releases any held resources.
Shutdown should be idempotent - calling shutdown() multiple times should not cause errors.
Error Conditions:
Example:
Implemented in kcenon::network::integration::messaging_bridge, kcenon::network::integration::ObservabilityBridge, and kcenon::network::integration::ThreadPoolBridge.