The MongoDB\Driver\TopologyDescription class

(mongodb >=1.13.0)

Einführung

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.

Klassenbeschreibung

final class MongoDB\Driver\TopologyDescription {
/* Constants */
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";
/* Methoden */
final public getServers(): array
final public getType(): string
final public hasReadableServer(?MongoDB\Driver\ReadPreference $readPreference = null): bool
final public hasWritableServer(): bool
}

Vordefinierte Konstanten

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().

Inhaltsverzeichnis

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Pharmaqo Labs | Safe Anabolic & Performance Support

Pharmaqo Labs (https://pharmaqolabs.store/) is a trusted provider of high-quality anabolic steroids, peptides, and performance-enhancing supplemen ...

Geschrieben von iletneils am 01.06.2026 11:59:55
Forum: Ankündigungen
RSgoldfast How to Defeat the Pirate Ambush in The Red Reef Quest

The newest chapter in Old School RuneScape sailing content sends players into dangerous waters with RuneScape gold (https://www.rsgoldfast.com/?fs ...

Geschrieben von Lilidala am 01.06.2026 10:37:49
Forum: Fragen/Vorschläge zum Forum
MMOexp Path of Exile: How to Farm Legion Efficiently With Totem Builds

Legion encounters are some of POE orbs (https://www.mmoexp.com/Path-of-exile/Currency.html?fsid=574390)​ the most rewarding activities in Path o ...

Geschrieben von Lilidala am 01.06.2026 10:36:44
Forum: Fragen/Vorschläge zum Forum
MMOexp FC 26: Master the Winger Run Strategy for More Goals

Scoring consistently in FC 26 often comes down to mastering repeatable attacking patterns rather than FIFA 26 Coins (https://www.mmoexp.com/Fc-26/ ...

Geschrieben von Lilidala am 01.06.2026 10:31:06
Forum: Fragen/Vorschläge zum Forum