#include <rs_member.h>
Public Types | |
enum | MS { RS_STARTUP = 0, RS_PRIMARY = 1, RS_SECONDARY = 2, RS_RECOVERING = 3, RS_FATAL = 4, RS_STARTUP2 = 5, RS_UNKNOWN = 6, RS_ARBITER = 7, RS_DOWN = 8, RS_ROLLBACK = 9 } |
Public Member Functions | |
bool | fatal () const |
MemberState (int ms) | |
MemberState (MS ms=RS_UNKNOWN) | |
bool | operator!= (const MemberState &r) const |
bool | operator== (const MemberState &r) const |
bool | primary () const |
bool | readable () const |
bool | recovering () const |
bool | rollback () const |
bool | secondary () const |
bool | startup2 () const |
string | toString () const |
Public Attributes | |
enum mongo::MemberState::MS | s |
Definition at line 33 of file rs_member.h.
RS_STARTUP | |
RS_PRIMARY | |
RS_SECONDARY | |
RS_RECOVERING | |
RS_FATAL | |
RS_STARTUP2 | |
RS_UNKNOWN | |
RS_ARBITER | |
RS_DOWN | |
RS_ROLLBACK |
Definition at line 34 of file rs_member.h.
mongo::MemberState::MemberState | ( | MS | ms = RS_UNKNOWN |
) | [inline] |
Definition at line 47 of file rs_member.h.
mongo::MemberState::MemberState | ( | int | ms | ) | [inline, explicit] |
Definition at line 48 of file rs_member.h.
bool mongo::MemberState::fatal | ( | ) | const [inline] |
Definition at line 54 of file rs_member.h.
bool mongo::MemberState::operator!= | ( | const MemberState & | r | ) | const [inline] |
Definition at line 61 of file rs_member.h.
bool mongo::MemberState::operator== | ( | const MemberState & | r | ) | const [inline] |
Definition at line 60 of file rs_member.h.
bool mongo::MemberState::primary | ( | ) | const [inline] |
Definition at line 50 of file rs_member.h.
bool mongo::MemberState::readable | ( | ) | const [inline] |
Definition at line 56 of file rs_member.h.
bool mongo::MemberState::recovering | ( | ) | const [inline] |
Definition at line 52 of file rs_member.h.
bool mongo::MemberState::rollback | ( | ) | const [inline] |
Definition at line 55 of file rs_member.h.
bool mongo::MemberState::secondary | ( | ) | const [inline] |
Definition at line 51 of file rs_member.h.
bool mongo::MemberState::startup2 | ( | ) | const [inline] |
Definition at line 53 of file rs_member.h.
string mongo::MemberState::toString | ( | ) | const |