Storage Engine API
mongo::WiredTigerEventHandler Class Reference

Returns a WT_EVENT_HANDLER with MongoDB's default handlers. More...

#include <wiredtiger_util.h>

Inheritance diagram for mongo::WiredTigerEventHandler:

Detailed Description

Returns a WT_EVENT_HANDLER with MongoDB's default handlers.

The default handlers just log so it is recommended that you consider calling them even if you are capturing the output.

There is no default "close" handler. You only need to provide one if you need to call a destructor.

Public Member Functions

 WiredTigerEventHandler ()
 
WT_EVENT_HANDLER * getWtEventHandler ()
 
bool wasStartupSuccessful ()
 
void setStartupSuccessful ()
 

Private Member Functions

int suppressibleStartupErrorLog (WT_EVENT_HANDLER *handler, WT_SESSION *sesion, int errorCode, const char *message)
 

Private Attributes

bool _startupSuccessful = false
 

Constructor & Destructor Documentation

◆ WiredTigerEventHandler()

mongo::WiredTigerEventHandler::WiredTigerEventHandler ( )

Member Function Documentation

◆ getWtEventHandler()

WT_EVENT_HANDLER * mongo::WiredTigerEventHandler::getWtEventHandler ( )

◆ setStartupSuccessful()

void mongo::WiredTigerEventHandler::setStartupSuccessful ( )
inline

◆ suppressibleStartupErrorLog()

int mongo::WiredTigerEventHandler::suppressibleStartupErrorLog ( WT_EVENT_HANDLER *  handler,
WT_SESSION *  sesion,
int  errorCode,
const char *  message 
)
private

◆ wasStartupSuccessful()

bool mongo::WiredTigerEventHandler::wasStartupSuccessful ( )
inline

Member Data Documentation

◆ _startupSuccessful

bool mongo::WiredTigerEventHandler::_startupSuccessful = false
private

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