The MongoDB\Driver\Monitoring\ServerOpeningEvent class
(mongodb >=1.13.0)
Introduction
The MongoDB\Driver\Monitoring\ServerOpeningEvent class encapsulates information about an opened server.
Class synopsis
Table of Contents
- MongoDB\Driver\Monitoring\ServerOpeningEvent::getHost — Returns the hostname of the server
- MongoDB\Driver\Monitoring\ServerOpeningEvent::getPort — Returns the port on which this server is listening
- MongoDB\Driver\Monitoring\ServerOpeningEvent::getTopologyId — Returns the topology ID associated with this server