« MongoDB\Driver\ServerDescription
MongoDB\Driver\ServerDescription::getHost »

MongoDB\Driver\ServerDescription::getHelloResponse

(mongodb >=1.13.0)

MongoDB\Driver\ServerDescription::getHelloResponse — Returns the server's most recent "hello" response

説明

final public function MongoDB\Driver\ServerDescription::getHelloResponse(): array

Returns an array of information describing the server. This array is derived from the most recent (at the time the MongoDB\Driver\ServerDescription was constructed) » hello command response obtained through » server monitoring.

注意:

When the driver is connected to a load balancer, this method will return an empty array since load balancers are not monitored. This is in contrast to MongoDB\Driver\Server::getInfo(), which would return the backing server's » hello command response from the initial connection handshake.

パラメータ

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

戻り値

Returns an array of information describing this server.

エラー / 例外

参考

関連キーワード:
MongoDB   Driver   server   ServerDescription   hello   response   most   recent   getHelloResponse   information   describing   command   Server   return   getInfo   getHost   mongodb   final   derived   time   constructed   obtained   through   monitoring   driver
関連する関数・ページ:
mongodb-driver-server.getserverdescription   mongodb-driver-serverdescription.gethost   mongodb-driver-server.getinfo   mongodb-driver-serverdescription.gettype   mongodb-driver-serverdescription.getport   mongodb-driver-serverdescription.getlastupdatetime