Module « pymongo »
Classe « MongoReplicaSetClient »
Informations générales
Héritage
builtins.object
BaseObject
MongoClient
MongoReplicaSetClient
Définition
class MongoReplicaSetClient(MongoClient):
Description [extrait de MongoReplicaSetClient.__doc__]
Deprecated alias for :class:`~pymongo.mongo_client.MongoClient`.
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`
will be removed in a future version of PyMongo.
.. versionchanged:: 3.0
:class:`~pymongo.mongo_client.MongoClient` is now the one and only
client class for a standalone server, mongos, or replica set.
It includes the functionality that had been split into
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`: it
can connect to a replica set, discover all its members, and monitor
the set for stepdowns, elections, and reconfigs.
The ``refresh`` method is removed from
:class:`~pymongo.mongo_replica_set_client.MongoReplicaSetClient`,
as are the ``seeds`` and ``hosts`` properties.
Constructeur(s)
Liste des attributs statiques
Liste des propriétés
address | (host, port) of the current standalone, primary, or mongos, or None. [extrait de __doc__] |
arbiters | Arbiters in the replica set. [extrait de __doc__] |
codec_options | Read only access to the :class:`~bson.codec_options.CodecOptions` [extrait de __doc__] |
event_listeners | The event listeners registered for this client. [extrait de __doc__] |
is_locked | **DEPRECATED**: Is this server locked? While locked, all write [extrait de __doc__] |
is_mongos | If this client is connected to mongos. If the client is not [extrait de __doc__] |
is_primary | If this client is connected to a server that can accept writes. [extrait de __doc__] |
local_threshold_ms | The local threshold for this instance. [extrait de __doc__] |
max_bson_size | The largest BSON object the connected server accepts in bytes. [extrait de __doc__] |
max_idle_time_ms | The maximum number of milliseconds that a connection can remain [extrait de __doc__] |
max_message_size | The largest message the connected server accepts in bytes. [extrait de __doc__] |
max_pool_size | The maximum allowable number of concurrent connections to each [extrait de __doc__] |
max_write_batch_size | The maxWriteBatchSize reported by the server. [extrait de __doc__] |
min_pool_size | The minimum required number of concurrent connections that the pool [extrait de __doc__] |
nodes | Set of all currently connected servers. [extrait de __doc__] |
primary | The (host, port) of the current primary of the replica set. [extrait de __doc__] |
read_concern | Read only access to the :class:`~pymongo.read_concern.ReadConcern` [extrait de __doc__] |
read_preference | Read only access to the read preference of this instance. [extrait de __doc__] |
retry_reads | If this instance should retry supported write operations. [extrait de __doc__] |
retry_writes | If this instance should retry supported write operations. [extrait de __doc__] |
secondaries | The secondary members known to this client. [extrait de __doc__] |
server_selection_timeout | The server selection timeout for this instance in seconds. [extrait de __doc__] |
topology_description | The description of the connected MongoDB deployment. [extrait de __doc__] |
write_concern | Read only access to the :class:`~pymongo.write_concern.WriteConcern` [extrait de __doc__] |
Liste des opérateurs
Opérateurs hérités de la classe MongoClient
__eq__, __getitem__, __ne__
Liste des opérateurs
Opérateurs hérités de la classe object
__ge__,
__gt__,
__le__,
__lt__
Liste des méthodes
Toutes les méthodes
Méthodes d'instance
Méthodes statiques
Méthodes dépréciées
Méthodes héritées de la classe MongoClient
__enter__, __exit__, __getattr__, __hash__, __init_subclass__, __iter__, __next__, __subclasshook__, close, close_cursor, database_names, drop_database, fsync, get_database, get_default_database, kill_cursors, list_database_names, list_databases, next, server_info, set_cursor_manager, start_session, unlock, watch
Méthodes héritées de la classe object
__delattr__,
__dir__,
__format__,
__getattribute__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__str__
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :