Backend lifetime

This chapter describes the backend lifetime consisting of the different steps for starting and stopping such as Create a CommonBackend instance and Get DatabaseParameters.

Starting

  • Create a CommonBackend instance
  • Get DatabaseParameters
  • Set DatabaseActivityMonitor handlers
  • Set Write-Read handlers
  • Make metadata synchronization
  • Set Config handler
  • Start Write-Read handlers
  • Wait for the stop command

Stopping

  • Wait to stop custom classes
  • Wait to stop a CommonBackend instance
    • In in-proc mode, the interface raises the doExit flag and the backend should exit.
    • In out-proc mode, the interface sends a shutdown command.