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

  1. Create a CommonBackend instance.
  2. Get Database Parameters.
  3. Set DatabaseActivityMonitor.
  4. Set Write and Read handlers.
  5. Make Metadata synchronization.
  6. Set a ConfigChannelHandler.
  7. Start Write and Read handlers.
  8. Wait for the shutdown command. The backend you are developing receives this command from the NGA manager in DataReceivedHandler::processFrontendRequest and sets the global doExit flag.

Stopping Sequence

  1. Wait to stop custom classes
  2. Wait to stop a CommonBackend instance
    • In In-Proc mode, the interface raises the doExit flag and the backend should exit.
    • In Out-of-Proc mode, the backend gets the shutdown command sent by the NGA manager.