The MongoDB\Driver\Monitoring\ServerOpeningEvent class

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

MongoDB\Driver\Monitoring\ServerOpeningEvent
final class MongoDB\Driver\Monitoring\ServerOpeningEvent {
/* Methods */
final public string getHost()
final public int getPort()
final public MongoDB\BSON\ObjectId getTopologyId()
}
Table of Contents