array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.mongodb-driver-topologydescription.php', 1 => 'MongoDB\\Driver\\TopologyDescription', ), 'up' => array ( 0 => 'book.mongodb.php', 1 => 'MongoDB\\Driver', ), 'prev' => array ( 0 => 'mongodb-driver-serverdescription.gettype.php', 1 => 'MongoDB\\Driver\\ServerDescription::getType', ), 'next' => array ( 0 => 'mongodb-driver-topologydescription.getservers.php', 1 => 'MongoDB\\Driver\\TopologyDescription::getServers', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/topologydescription.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.mongodb-driver-topologydescription.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(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.
MongoDB\Driver\TopologyDescription::TYPE_UNKNOWN
Unknown topology type, returned by MongoDB\Driver\TopologyDescription::getType().
MongoDB\Driver\TopologyDescription::TYPE_SINGLE
Single server (i.e. direct connection), returned by MongoDB\Driver\TopologyDescription::getType().
MongoDB\Driver\TopologyDescription::TYPE_SHARDED
Sharded cluster, returned by MongoDB\Driver\TopologyDescription::getType().
MongoDB\Driver\TopologyDescription::TYPE_REPLICA_SET_NO_PRIMARY
Replica set with no primary server, returned by MongoDB\Driver\TopologyDescription::getType().
MongoDB\Driver\TopologyDescription::TYPE_REPLICA_SET_WITH_PRIMARY
Replica set with a primary server, returned by MongoDB\Driver\TopologyDescription::getType().
MongoDB\Driver\TopologyDescription::TYPE_LOAD_BALANCED
Load balanced topology, returned by MongoDB\Driver\TopologyDescription::getType().