« MongoDB\Driver\Monitoring\CommandFailedEvent::getRequestId
MongoDB\Driver\Monitoring\CommandFailedEvent::getServerConnectionId »

MongoDB\Driver\Monitoring\CommandFailedEvent::getServer

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getServer — Returns the Server on which the command was executed

警告

This method has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\Driver\Monitoring\CommandFailedEvent::getHost() and MongoDB\Driver\Monitoring\CommandFailedEvent::getPort() instead.

説明

final public function MongoDB\Driver\Monitoring\CommandFailedEvent::getServer(): MongoDB\Driver\Server

Returns the MongoDB\Driver\Server on which the command was executed.

パラメータ

この関数にはパラメータはありません。

戻り値

Returns the MongoDB\Driver\Server on which the command was executed.

エラー / 例外

変更履歴

バージョン 説明
PECL mongodb 2.0.0 This method was removed.
関連キーワード:
MongoDB   Driver   Monitoring   CommandFailedEvent   Server   command   executed   getServer   mongodb   method   removed   getRequestId   getServerConnectionId   extension   Applications   getHost   getPort   instead   final   Throws   Exception   InvalidArgumentException   argument   parsing   errors
関連する関数・ページ:
mongodb-driver-monitoring-commandfailedevent.getdatabasename   mongodb-driver-monitoring-commandfailedevent.getrequestid   mongodb-driver-monitoring-commandfailedevent.getcommandname   mongodb-driver-monitoring-commandfailedevent.getport   mongodb-driver-monitoring-commandfailedevent.gethost   mongodb-driver-monitoring-commandstartedevent.getserver