« MongoDB\Driver\ServerDescription::getType
MongoDB\Driver\TopologyDescription::getServers »

The MongoDB\Driver\TopologyDescription class

(mongodb >=1.13.0)

はじめに

The MongoDB\Driver\TopologyDescription class is a value object that represents a topology to which the driver is connected. Instances of this class are returned by MongoDB\Driver\Monitoring\TopologyChangedEvent methods.

クラス概要

final class MongoDB\Driver\TopologyDescription {
/* 定数 */
const string TYPE_UNKNOWN = "Unknown";
const string TYPE_SINGLE = "Single";
const string TYPE_SHARDED = "Sharded";
const string TYPE_REPLICA_SET_NO_PRIMARY = "ReplicaSetNoPrimary";
const string TYPE_REPLICA_SET_WITH_PRIMARY = "ReplicaSetWithPrimary";
const string TYPE_LOAD_BALANCED = "LoadBalanced";
/* メソッド */
final public function getServers(): array
final public function getType(): string
final public function hasReadableServer(?MongoDB\Driver\ReadPreference $readPreference = null): bool
final public function hasWritableServer(): bool
}

目次

関連キーワード:
MongoDB   Driver   TopologyDescription   getType   topology   returned   final   server   getServers   定数   Unknown   Single   Sharded   hasReadableServer   hasWritableServer   type   Replica   primary   whether   ServerDescription   mongodb   represents   driver   connected   Instances
関連する関数・ページ:
mongodb-driver-topologydescription.gettype   mongodb-driver-topologydescription.getservers   mongodb-driver-topologydescription.haswritableserver   mongodb-driver-topologydescription.hasreadableserver   class.mongodb-driver-serverdescription   mongodb-driver-serverdescription.gettype