MongoDB C++ Driver legacy-1.1.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongo::Initializer Class Reference

Class representing an initialization process. More...

#include <initializer.h>

Public Member Functions

InitializerDependencyGraphgetInitializerDependencyGraph ()
 Get the initializer dependency graph, presumably for the purpose of adding more nodes.
 
Status execute (const InitializerContext::ArgumentVector &args, const InitializerContext::EnvironmentMap &env) const
 Execute the initializer process, using the given argv and environment data as input.
 

Detailed Description

Class representing an initialization process.

Such a process is described by a directed acyclic graph of initialization operations, the InitializerDependencyGraph. One constructs an initialization process by adding nodes and edges to the graph. Then, one executes the process, causing each initialization operation to execute in an order that respects the programmer-established prerequistes.

Member Function Documentation

◆ execute()

Status mongo::Initializer::execute ( const InitializerContext::ArgumentVector &  args,
const InitializerContext::EnvironmentMap &  env 
) const

Execute the initializer process, using the given argv and environment data as input.

Returns Status::OK on success. All other returns constitute initialization failures, and the thing being initialized should be considered dead in the water.


The documentation for this class was generated from the following file: