Main plugin class. More...
Public Member Functions | |
| __init__ (self, pluginName, config) | |
| init preload some needed locals and then call onLoad() directly | |
| onLoad (self) | |
| Called by import of the plugin can be inherited. | |
| setup (self) | |
| Called before alarm can be inherited. | |
| fms (self, bwPacket) | |
| Called on FMS alarm can be inherited. | |
| pocsag (self, bwPacket) | |
| Called on POCSAG alarm can be inherited. | |
| zvei (self, bwPacket) | |
| Called on ZVEI alarm can be inherited. | |
| msg (self, bwPacket) | |
| Called on MSG packet can be inherited. | |
| teardown (self) | |
| Called after alarm can be inherited. | |
| onUnload (self) | |
| Called on shutdown of boswatch can be inherited. | |
| parseWildcards (self, msg) | |
| Return the message with parsed wildcards. | |
Data Fields | |
| config | |
Protected Member Functions | |
| _cleanup (self) | |
| Cleanup routine calls onUnload() directly. | |
| _run (self, bwPacket) | |
| start an complete running turn of an plugin. | |
| _getStatistics (self) | |
| Returns statistical information's from last plugin run. | |
Protected Attributes | |
| _pluginName | |
| _bwPacket | |
| _sumTime | |
| _cumTime | |
| _setupTime | |
| _alarmTime | |
| _teardownTime | |
| _runCount | |
| _setupErrorCount | |
| _alarmErrorCount | |
| _teardownErrorCount | |
Static Protected Attributes | |
| list | _pluginsActive = [] |
Main plugin class.
| plugin.pluginBase.PluginBase.__init__ | ( | self, | |
| pluginName, | |||
| config | |||
| ) |
init preload some needed locals and then call onLoad() directly
Reimplemented in plugin.divera.BoswatchPlugin, plugin.http.BoswatchPlugin, plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
|
protected |
Cleanup routine calls onUnload() directly.
|
protected |
start an complete running turn of an plugin.
Calls setup(), alarm() and teardown() in this order. The alarm() method serves the BOSWatch packet to the plugin.
| bwPacket | A BOSWatch packet instance |
|
protected |
Returns statistical information's from last plugin run.
| plugin.pluginBase.PluginBase.onLoad | ( | self | ) |
Called by import of the plugin can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.setup | ( | self | ) |
Called before alarm can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.fms | ( | self, | |
| bwPacket | |||
| ) |
Called on FMS alarm can be inherited.
| bwPacket | bwPacket instance |
Reimplemented in plugin.divera.BoswatchPlugin, plugin.http.BoswatchPlugin, plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.pocsag | ( | self, | |
| bwPacket | |||
| ) |
Called on POCSAG alarm can be inherited.
| bwPacket | bwPacket instance |
Reimplemented in plugin.divera.BoswatchPlugin, plugin.http.BoswatchPlugin, plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.zvei | ( | self, | |
| bwPacket | |||
| ) |
Called on ZVEI alarm can be inherited.
| bwPacket | bwPacket instance |
Reimplemented in plugin.divera.BoswatchPlugin, plugin.http.BoswatchPlugin, plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.msg | ( | self, | |
| bwPacket | |||
| ) |
Called on MSG packet can be inherited.
| bwPacket | bwPacket instance |
Reimplemented in plugin.divera.BoswatchPlugin, plugin.http.BoswatchPlugin, plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.teardown | ( | self | ) |
Called after alarm can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.onUnload | ( | self | ) |
Called on shutdown of boswatch can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, plugin.telegram.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
| plugin.pluginBase.PluginBase.parseWildcards | ( | self, | |
| msg | |||
| ) |
Return the message with parsed wildcards.
|
staticprotected |
|
protected |
| plugin.pluginBase.PluginBase.config |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |