Main module class. More...
Public Member Functions | |
def | __init__ (self, moduleName, config) |
init preload some needed locals and then call onLoad() directly | |
def | onLoad (self) |
Called by import of the module can be inherited. | |
def | doWork (self, bwPacket) |
Called module run can be inherited. | |
def | onUnload (self) |
Called on shutdown of boswatch can be inherited. | |
Static Public Member Functions | |
def | registerWildcard (newWildcard, bwPacketField) |
Register a new wildcard. | |
Data Fields | |
config | |
Protected Member Functions | |
def | _cleanup (self) |
Cleanup routine calls onUnload() directly. | |
def | _run (self, bwPacket) |
start an run of the module. | |
def | _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.
def 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.
@param bwPacket: A BOSWatch packet instance @return bwPacket or False
|
protected |
Returns statistical information's from last module run.
@return Statistics as pyton dict
def 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.
def 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.
def 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.
@param newWildcard: wildcard where parser searching for @param bwPacketField: field from bwPacket where holds replacement data
|
staticprotected |
|
protected |
module.moduleBase.ModuleBase.config |
|
protected |
|
protected |
|
protected |
|
protected |