#include <mongocxx/v1/events/server_description.hpp>
ServerDescription from the Server Discovery and Monitoring specification.
- See also
-
- Attention
- This feature is experimental! It is not ready for use!
◆ ~server_description()
| mongocxx::v1::events::server_description::~server_description |
( |
| ) |
|
Destroy this object.
- Warning
- Invalidates all associated views.
◆ server_description() [1/2]
| mongocxx::v1::events::server_description::server_description |
( |
server_description && | other | ) |
|
|
noexcept |
Move constructor.
- Postconditions:
- other is in an assign-or-destroy-only state.
◆ server_description() [2/2]
| mongocxx::v1::events::server_description::server_description |
( |
server_description const & | other | ) |
|
◆ hello()
Return the raw server response to the "hello" command.
- Returns
- Empty when connection was unsuccessful or a client-side error was encountered.
◆ host()
Return the hostname for the connection used by the command.
◆ id()
| std::uint32_t mongocxx::v1::events::server_description::id |
( |
| ) |
const |
Return the client-generated unique server ID.
- Note
- The server ID is unique only for the associated client or client pool.
◆ operator=() [1/2]
Move assignment.
- Postconditions:
- other is in an assign-or-destroy-only state.
◆ operator=() [2/2]
◆ port()
| std::uint16_t mongocxx::v1::events::server_description::port |
( |
| ) |
const |
Return the port number for the connection used by the command.
◆ round_trip_time()
Return the client-measured execution time of the "hello" command.
◆ type()
Return the topology type.
- Returns
- One of:
- "LoadBalancer"
- "Mongos"
- "PossiblePrimary"
- "RSArbiter"
- "RSGhost"
- "RSOther"
- "RSPrimary"
- "RSSecondary"
- "Standalone"
- "Unknown"
The documentation for this class was generated from the following file: