The monitor Module

A utility that prints the statistics about currently running indexing processes

class Lock(data: List)[source]
class DBMonitorConfig(subclass, doc)[source]

Creates a new object

Parameters
  • subclass – A concrete class containing configuration information Configuration options must be defined as class memebers with names, starting with one ‘_’ characters and values be instances of :class Argument:

  • description – Optional text to use as description. If not specified, then it is extracted from subclass documentation

pid: List[int]

process id list

state: Optional[str]

Display only processes in the given state

class DBActivityMonitor(context: Optional[DBConnectionConfig] = None)[source]
classmethod get_instance(context: DBConnectionConfig) DBMonitorConfig[source]
run()[source]
get_blocks()[source]
get_indexing_progress() List[str][source]
get_activity(pid: Optional[int] = None) List[str][source]
static execute(what: Callable, on_monitor: Callable)[source]
log_activity(pid: int)[source]
class Activity(activity: ~typing.Dict, known_blocks, now: <module 'datetime' from '/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/datetime.py'>, msg_len=32)[source]