Backend Lifecycle
Outlines the initialization and termination steps for a backend, including setting up handlers, synchronizing metadata, and managing shutdown in In-Proc- or Out-Proc modes.
Starting Sequence
- Create a CommonBackend instance.
- Get Database Parameters.
- Set DatabaseActivityMonitor.
- Set Write and Read handlers.
- Make Metadata synchronization.
- Set a ConfigChannelHandler.
- Start Write and Read handlers.
- Wait for the shutdown command. The backend you are developing
receives this command from the NGA manager in
DataReceivedHandler::processFrontendRequestand sets the globaldoExitflag.
Stopping Sequence
- Wait to stop custom classes
- Wait to stop a CommonBackend instance
- In In-Proc mode, the interface raises the
doExitflag and the backend should exit. - In Out-of-Proc mode, the backend gets the shutdown command sent by the NGA manager.
- In In-Proc mode, the interface raises the
