Main module class. More...
Public Member Functions | |
| __init__ (self, moduleName, config) | |
| init preload some needed locals and then call onLoad() directly | |
| onLoad (self) | |
| Called by import of the module can be inherited. | |
| doWork (self, bwPacket) | |
| Called module run can be inherited. | |
| onUnload (self) | |
| Called on shutdown of boswatch can be inherited. | |
Static Public Member Functions | |
| registerWildcard (newWildcard, bwPacketField) | |
| Register a new wildcard. | |
Data Fields | |
| config | |
Protected Member Functions | |
| _cleanup (self) | |
| Cleanup routine calls onUnload() directly. | |
| _run (self, bwPacket) | |
| start an run of the module. | |
| _getStatistics (self) | |
| Returns statistical information's from last module run. | |
Protected Attributes | |
| _moduleName | |
| _cumTime | |
| _moduleTime | |
| _runCount | |
| _moduleErrorCount | |
Static Protected Attributes | |
| list | _modulesActive = [] |
Main module class.
| module.moduleBase.ModuleBase.__init__ | ( | self, | |
| moduleName, | |||
| config | |||
| ) |
init preload some needed locals and then call onLoad() directly
Reimplemented in module.descriptor.BoswatchModule, module.filter.doubleFilter.BoswatchModule, module.filter.modeFilter.BoswatchModule, module.filter.regexFilter.BoswatchModule, module.geocoding.BoswatchModule, and module.template_module.BoswatchModule.
|
protected |
Cleanup routine calls onUnload() directly.
|
protected |
start an run of the module.
| bwPacket | A BOSWatch packet instance |
|
protected |
Returns statistical information's from last module run.
| module.moduleBase.ModuleBase.onLoad | ( | self | ) |
Called by import of the module can be inherited.
Reimplemented in module.descriptor.BoswatchModule, module.filter.doubleFilter.BoswatchModule, module.filter.modeFilter.BoswatchModule, module.filter.regexFilter.BoswatchModule, and module.template_module.BoswatchModule.
| module.moduleBase.ModuleBase.doWork | ( | self, | |
| bwPacket | |||
| ) |
Called module run can be inherited.
| bwPacket | bwPacket instance |
Reimplemented in module.descriptor.BoswatchModule, module.filter.doubleFilter.BoswatchModule, module.filter.modeFilter.BoswatchModule, module.filter.regexFilter.BoswatchModule, module.geocoding.BoswatchModule, and module.template_module.BoswatchModule.
| module.moduleBase.ModuleBase.onUnload | ( | self | ) |
Called on shutdown of boswatch can be inherited.
Reimplemented in module.descriptor.BoswatchModule, module.filter.doubleFilter.BoswatchModule, module.filter.modeFilter.BoswatchModule, module.filter.regexFilter.BoswatchModule, and module.template_module.BoswatchModule.
|
static |
Register a new wildcard.
| newWildcard | wildcard where parser searching for |
| bwPacketField | field from bwPacket where holds replacement data |
|
staticprotected |
|
protected |
| module.moduleBase.ModuleBase.config |
|
protected |
|
protected |
|
protected |
|
protected |