MongoDB C++ Driver
legacy-1.1.2
|
Class representing an initialization process. More...
#include <initializer.h>
Public Member Functions | |
InitializerDependencyGraph & | getInitializerDependencyGraph () |
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. More... | |
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.
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.