poolmonitor

This file contains the pool monitor class

Classes

PoolMonitor

Inheritance diagram of PoolMonitor
class PoolMonitor(pool, name='PoolMonitor', period=5.0, min_sleep=1.0, auto_start=True)[source]

Bases: Logger, Thread

MIN_THREADS = 1
MAX_THREADS = 10
on_pool_changed(evt_src, evt_type, evt_value)[source]
update_state_info()[source]

Update state information of every element.

stop()[source]
pause()[source]
resume()[source]
monitor()[source]
run()[source]

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.