The MongoDB\Driver\Monitoring\ServerOpeningEvent class
(mongodb >=1.13.0)
Introduction
The MongoDB\Driver\Monitoring\ServerOpeningEvent class encapsulates information about an opened server. This corresponds to a new server being added to the topology.
Class synopsis
final class MongoDB\Driver\Monitoring\ServerOpeningEvent {
/* Methods */
}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
↑ and ↓ to navigate • Enter to select • Esc to close • / to open