IntelligenceMonitorHandler

class HSTB.kluster.monitor.IntelligenceMonitorHandler(parent, patterns, ignore_patterns, ignore_directories, case_sensitive)

Bases: PatternMatchingEventHandler

Event handler for the fqpr_intelligence directory monitoring.

Methods Summary

on_created(event)

When a file is created, we add it to the buffer.

on_deleted(event)

When a file is deleted (or cut and pasted) from a monitored directory, add it to the buffer with the 'deleted' event tag

Methods Documentation

on_created(event)

When a file is created, we add it to the buffer. Will be cleared from the buffer and added for real once the file has finished writing.

Parameters

event (FileCreatedEvent) – watchdog filecreatedevent that gets generated on creating a file in the monitored directory

on_deleted(event)

When a file is deleted (or cut and pasted) from a monitored directory, add it to the buffer with the ‘deleted’ event tag

Parameters

event (FileDeletedEvent) – watchdog event created when a file is deleted in the monitored directory