| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
MongoDB\Driver\Manager::getServers(mongodb >=1.0.0) MongoDB\Driver\Manager::getServers — Return the servers to which this manager is connected 説明
final public array MongoDB\Driver\Manager::getServers
( void
)
Returns an array of MongoDB\Driver\Server instances to which this manager is connected.
パラメータこの関数にはパラメータはありません。 返り値Returns an array of MongoDB\Driver\Server instances to which this manager is connected. エラー / 例外
例例1 MongoDB\Driver\Manager::getServers() example
<?php 上の例の出力は、 たとえば以下のようになります。 array(0) { } array(1) { [0]=> object(MongoDB\Driver\Server)#3 (10) { ["host"]=> string(9) "localhost" ["port"]=> int(27017) ["type"]=> int(1) ["is_primary"]=> bool(false) ["is_secondary"]=> bool(false) ["is_arbiter"]=> bool(false) ["is_hidden"]=> bool(false) ["is_passive"]=> bool(false) ["last_is_master"]=> array(8) { ["ismaster"]=> bool(true) ["maxBsonObjectSize"]=> int(16777216) ["maxMessageSizeBytes"]=> int(48000000) ["maxWriteBatchSize"]=> int(1000) ["localTime"]=> object(MongoDB\BSON\UTCDateTime)#4 (1) { ["milliseconds"]=> int(1447267964517) } ["maxWireVersion"]=> int(3) ["minWireVersion"]=> int(0) ["ok"]=> float(1) } ["round_trip_time"]=> int(554) } } 参考
|
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「MongoDB\Driver\Manager::getServers - Return the servers to which this manager is connected」をGoogle検索
|