logalyzer.records.RecordKeeper(Base) class documentation
logalyzer.records(View In Hierarchy)
I am the master record keeper that gets fed info from the subprocesses. I operate with deferreds; supply a database URL to my constructor so I can do the recordkeeping persistently via that database.
|Method||startup||Returns a deferred that fires when my DB transactor is running and my transactor has preloaded its IPMatcher.|
|Method||getNewBlockedIPs||Returns a list of those rejected IP addresses that are to be blocked and were identified since the last call to this method.|
|Method||consumerFactory||Constructs and returns a reference to a new
|Method||addRecord||Adds the supplied record to the database for the specified datetime, if it's not already there.|
Inherited from Base:
|Method||msgBody||Send a new line of message body to the last heading for this instance,
or the instance whose ID is specified via the keyword
|Method||pathInDir||Returns the absolute path of a file in my directory|
Returns a deferred that fires when my DB transactor is running and my transactor has preloaded its IPMatcher.
Shows progress loading IP addresses, one update per 1000 loaded.
Returns a list of those rejected IP addresses that are to be blocked and were identified since the last call to this method.
Constructs and returns a reference to a new
that obtains nasty IP addresses and new records from a process parsing a
Purges my records (and database, if any) of entries from the supplied IP address and appends the IP to a list to be returned when I'm done so that a master list of purged IP addresses can be provided. Any further adds from this IP are ignored.
Adds the supplied record to the database for the specified datetime, if it's not already there.
Note: Multiple identical HTTP queries occurring during the same second will be viewed as a single one. That shouldn't be an issue.
Returns a deferred that fires with a Bool indicating if a new entry was added to the database.