MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/events/server_description.hpp>
Class representing what the driver knows about a MongoDB server.
Public Member Functions | |
~server_description () | |
Destroys a server_description. | |
bsoncxx::v_noabi::document::view | hello () const |
The server's last response to the "hello" command, or an empty document if the driver has not yet reached the server or there was an error. | |
bsoncxx::v_noabi::stdx::string_view | host () const |
Returns the server host name. | |
std::uint32_t | id () const |
An opaque id, unique to this server for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool. | |
MONGOCXX_DEPRECATED bsoncxx::v_noabi::document::view | is_master () const |
std::uint16_t | port () const |
Returns the server port. | |
std::int64_t | round_trip_time () const |
The duration of the last hello call, indicating network latency. | |
bsoncxx::v_noabi::stdx::string_view | type () const |
The server type: "Unknown", "Standalone", "Mongos", "PossiblePrimary", "RSPrimary", "RSSecondary", "RSArbiter", "RSOther", or "RSGhost". | |
mongocxx::v_noabi::events::server_description::~server_description | ( | ) |
Destroys a server_description.
bsoncxx::v_noabi::document::view mongocxx::v_noabi::events::server_description::hello | ( | ) | const |
The server's last response to the "hello" command, or an empty document if the driver has not yet reached the server or there was an error.
bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::server_description::host | ( | ) | const |
Returns the server host name.
std::uint32_t mongocxx::v_noabi::events::server_description::id | ( | ) | const |
An opaque id, unique to this server for this mongocxx::v_noabi::client or mongocxx::v_noabi::pool.
MONGOCXX_DEPRECATED bsoncxx::v_noabi::document::view mongocxx::v_noabi::events::server_description::is_master | ( | ) | const |
std::uint16_t mongocxx::v_noabi::events::server_description::port | ( | ) | const |
Returns the server port.
std::int64_t mongocxx::v_noabi::events::server_description::round_trip_time | ( | ) | const |
The duration of the last hello call, indicating network latency.
bsoncxx::v_noabi::stdx::string_view mongocxx::v_noabi::events::server_description::type | ( | ) | const |
The server type: "Unknown", "Standalone", "Mongos", "PossiblePrimary", "RSPrimary", "RSSecondary", "RSArbiter", "RSOther", or "RSGhost".