OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | pool_created (self, event) |
def | pool_cleared (self, event) |
def | pool_closed (self, event) |
def | connection_created (self, event) |
def | connection_ready (self, event) |
def | connection_closed (self, event) |
def | connection_check_out_started (self, event) |
def | connection_check_out_failed (self, event) |
def | connection_checked_out (self, event) |
def | connection_checked_in (self, event) |
A simple listener that logs server connection pool events. Listens for :class:`~pymongo.monitoring.PoolCreatedEvent`, :class:`~pymongo.monitoring.PoolClearedEvent`, :class:`~pymongo.monitoring.PoolClosedEvent`, :~pymongo.monitoring.class:`ConnectionCreatedEvent`, :class:`~pymongo.monitoring.ConnectionReadyEvent`, :class:`~pymongo.monitoring.ConnectionClosedEvent`, :class:`~pymongo.monitoring.ConnectionCheckOutStartedEvent`, :class:`~pymongo.monitoring.ConnectionCheckOutFailedEvent`, :class:`~pymongo.monitoring.ConnectionCheckedOutEvent`, and :class:`~pymongo.monitoring.ConnectionCheckedInEvent` events and logs them at the `INFO` severity level using :mod:`logging`. .. versionadded:: 3.11
def connection_check_out_failed | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionCheckOutFailedEvent`. Emitted when the driver's attempt to check out a connection fails. :Parameters: - `event`: An instance of :class:`ConnectionCheckOutFailedEvent`.
Reimplemented from ConnectionPoolListener.
def connection_check_out_started | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionCheckOutStartedEvent`. Emitted when the driver starts attempting to check out a connection. :Parameters: - `event`: An instance of :class:`ConnectionCheckOutStartedEvent`.
Reimplemented from ConnectionPoolListener.
def connection_checked_in | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionCheckedInEvent`. Emitted when the driver checks in a Connection back to the Connection Pool. :Parameters: - `event`: An instance of :class:`ConnectionCheckedInEvent`.
Reimplemented from ConnectionPoolListener.
def connection_checked_out | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionCheckedOutEvent`. Emitted when the driver successfully checks out a Connection. :Parameters: - `event`: An instance of :class:`ConnectionCheckedOutEvent`.
Reimplemented from ConnectionPoolListener.
def connection_closed | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionClosedEvent`. Emitted when a Connection Pool closes a Connection. :Parameters: - `event`: An instance of :class:`ConnectionClosedEvent`.
Reimplemented from ConnectionPoolListener.
def connection_created | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionCreatedEvent`. Emitted when a Connection Pool creates a Connection object. :Parameters: - `event`: An instance of :class:`ConnectionCreatedEvent`.
Reimplemented from ConnectionPoolListener.
def connection_ready | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`ConnectionReadyEvent`. Emitted when a Connection has finished its setup, and is now ready to use. :Parameters: - `event`: An instance of :class:`ConnectionReadyEvent`.
Reimplemented from ConnectionPoolListener.
def pool_cleared | ( | self, | |
event | |||
) |
Abstract method to handle a `PoolClearedEvent`. Emitted when a Connection Pool is cleared. :Parameters: - `event`: An instance of :class:`PoolClearedEvent`.
Reimplemented from ConnectionPoolListener.
def pool_closed | ( | self, | |
event | |||
) |
Abstract method to handle a `PoolClosedEvent`. Emitted when a Connection Pool is closed. :Parameters: - `event`: An instance of :class:`PoolClosedEvent`.
Reimplemented from ConnectionPoolListener.
def pool_created | ( | self, | |
event | |||
) |
Abstract method to handle a :class:`PoolCreatedEvent`. Emitted when a Connection Pool is created. :Parameters: - `event`: An instance of :class:`PoolCreatedEvent`.
Reimplemented from ConnectionPoolListener.