|
The MongoDB\Driver\TopologyDescription classはじめに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. クラス概要MongoDB\Driver\TopologyDescription
final
class MongoDB\Driver\TopologyDescription
{
/* 定数 */
const
string
MongoDB\Driver\TopologyDescription::TYPE_UNKNOWN = "Unknown";
const
string
MongoDB\Driver\TopologyDescription::TYPE_SINGLE = "Single";
const
string
MongoDB\Driver\TopologyDescription::TYPE_SHARDED = "Sharded";
const
string
MongoDB\Driver\TopologyDescription::TYPE_REPLICA_SET_NO_PRIMARY = "ReplicaSetNoPrimary";
const
string
MongoDB\Driver\TopologyDescription::TYPE_REPLICA_SET_WITH_PRIMARY = "ReplicaSetWithPrimary";
const
string
MongoDB\Driver\TopologyDescription::TYPE_LOAD_BALANCED = "LoadBalanced";
/* メソッド */
final public array getServers()
final public string getType()
final public bool hasReadableServer(MongoDB\Driver\ReadPreferencenull
$readPreference = null )final public bool hasWritableServer()
}定義済み定数
|