mentat.daemon.component.parser module

Daemon component providing parsing and serializing functions of IDEA messages for daemons. Is is implemented as an encapsulation of mentat.idea.internal library.

The implementation is based on pyzenkit.zendaemon.ZenDaemonComponent.

class mentat.daemon.component.parser.ParserDaemonComponent(**kwargs)[source]

Bases: ZenDaemonComponent

Implementation of ZenDaemonComponent encapsulating IDEA library.

EVENT_LOG_STATISTICS = 'log_statistics'
EVENT_MSG_PROCESS = 'message_process'
EVENT_MSG_UPDATE = 'message_update'
STATS_CNT_ENCODED = 'cnt_encoded'
STATS_CNT_ERRORS = 'cnt_errors'
STATS_CNT_PARSED = 'cnt_parsed'
cbk_event_log_statistics(daemon, args)[source]

Periodical processing statistics logging.

cbk_event_message_process(daemon, args)[source]

Print the message contents into the log.

cbk_event_message_update(daemon, args)[source]

Print the message contents into the log.

get_events()[source]

Get the list of event names and their appropriate callback handlers.