|
def | __init__ (self, seeds=None, replica_set_name=None, pool_class=None, pool_options=None, monitor_class=None, condition_class=None, local_threshold_ms=LOCAL_THRESHOLD_MS, server_selection_timeout=SERVER_SELECTION_TIMEOUT, heartbeat_frequency=common.HEARTBEAT_FREQUENCY, server_selector=None, fqdn=None, direct_connection=None) |
|
def | seeds (self) |
|
def | replica_set_name (self) |
|
def | pool_class (self) |
|
def | pool_options (self) |
|
def | monitor_class (self) |
|
def | condition_class (self) |
|
def | local_threshold_ms (self) |
|
def | server_selection_timeout (self) |
|
def | server_selector (self) |
|
def | heartbeat_frequency (self) |
|
def | fqdn (self) |
|
def | direct (self) |
|
def | get_topology_type (self) |
|
def | get_server_descriptions (self) |
|
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
seeds = None , |
|
|
|
replica_set_name = None , |
|
|
|
pool_class = None , |
|
|
|
pool_options = None , |
|
|
|
monitor_class = None , |
|
|
|
condition_class = None , |
|
|
|
local_threshold_ms = LOCAL_THRESHOLD_MS , |
|
|
|
server_selection_timeout = SERVER_SELECTION_TIMEOUT , |
|
|
|
heartbeat_frequency = common.HEARTBEAT_FREQUENCY , |
|
|
|
server_selector = None , |
|
|
|
fqdn = None , |
|
|
|
direct_connection = None |
|
) |
| |
Represent MongoClient's configuration.
Take a list of (host, port) pairs and optional replica set name.
◆ condition_class()
def condition_class |
( |
|
self | ) |
|
◆ direct()
Connect directly to a single server, or use a set of servers?
True if there is one seed and no replica_set_name.
◆ fqdn()
◆ get_server_descriptions()
def get_server_descriptions |
( |
|
self | ) |
|
Initial dict of (address, ServerDescription) for all seeds.
◆ get_topology_type()
def get_topology_type |
( |
|
self | ) |
|
◆ heartbeat_frequency()
def heartbeat_frequency |
( |
|
self | ) |
|
◆ local_threshold_ms()
def local_threshold_ms |
( |
|
self | ) |
|
◆ monitor_class()
def monitor_class |
( |
|
self | ) |
|
◆ pool_class()
◆ pool_options()
◆ replica_set_name()
def replica_set_name |
( |
|
self | ) |
|
◆ seeds()
List of server addresses.
◆ server_selection_timeout()
def server_selection_timeout |
( |
|
self | ) |
|
◆ server_selector()
def server_selector |
( |
|
self | ) |
|
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/pymongo/settings.py