The MongoDB\Driver\Monitoring\ServerChangedEvent class
(mongodb >=1.13.0)
簡介
The MongoDB\Driver\Monitoring\ServerChangedEvent class encapsulates information about a changed server description.
類摘要
final
class MongoDB\Driver\Monitoring\ServerChangedEvent
{
/* 方法 */
}目錄
- MongoDB\Driver\Monitoring\ServerChangedEvent::getHost — Returns the hostname of the server
- MongoDB\Driver\Monitoring\ServerChangedEvent::getNewDescription — Returns the new description for the server
- MongoDB\Driver\Monitoring\ServerChangedEvent::getPort — Returns the port on which this server is listening
- MongoDB\Driver\Monitoring\ServerChangedEvent::getPreviousDescription — Returns the previous description for the server
- MongoDB\Driver\Monitoring\ServerChangedEvent::getTopologyId — Returns the topology ID associated with this server