◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
server_description, |
|
|
|
topology, |
|
|
|
pool, |
|
|
|
topology_settings |
|
) |
| |
Class to monitor a MongoDB server on a background thread.
Pass an initial ServerDescription, a Topology, a Pool, and
TopologySettings.
The Topology is weakly referenced. The Pool must be exclusive to this
Monitor.
Reimplemented from MonitorBase.
◆ cancel_check()
Cancel any concurrent isMaster check.
Note: this is called from a weakref.proxy callback and MUST NOT take
any locks.
◆ close()
Close and stop monitoring.
open() restarts the monitor after closing.
Reimplemented from MonitorBase.
◆ gc_safe_close()
def gc_safe_close |
( |
|
self | ) |
|
◆ heartbeater
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/pymongo/monitor.py