MongoDB  2.7.0
Public Member Functions | List of all members
mongo::FailPointRegistry Class Reference

Class for storing FailPoint instances. More...

#include <fail_point_registry.h>

Public Member Functions

Status addFailPoint (const std::string &name, FailPoint *failPoint)
 Adds a new fail point to this registry. More...
FailPointgetFailPoint (const std::string &name) const
void freeze ()
 Freezes this registry from being modified.

Detailed Description

Class for storing FailPoint instances.

Member Function Documentation

Status mongo::FailPointRegistry::addFailPoint ( const std::string &  name,
FailPoint failPoint 

Adds a new fail point to this registry.

Duplicate names are not allowed.

the status code under these circumstances: OK - if successful. DuplicateKey - if the given name already exists in this registry. CannotMutateObject - if this registry is already frozen.
FailPoint * mongo::FailPointRegistry::getFailPoint ( const std::string &  name) const
the fail point object registered. Returns NULL if it was not registered.

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