Main plugin class. More...
Public Member Functions | |
def | __init__ (self, pluginName, config) |
init preload some needed locals and then call onLoad() directly | |
def | onLoad (self) |
Called by import of the plugin can be inherited. | |
def | setup (self) |
Called before alarm can be inherited. | |
def | fms (self, bwPacket) |
Called on FMS alarm can be inherited. | |
def | pocsag (self, bwPacket) |
Called on POCSAG alarm can be inherited. | |
def | zvei (self, bwPacket) |
Called on ZVEI alarm can be inherited. | |
def | msg (self, bwPacket) |
Called on MSG packet can be inherited. | |
def | teardown (self) |
Called after alarm can be inherited. | |
def | onUnload (self) |
Called on shutdown of boswatch can be inherited. | |
def | parseWildcards (self, msg) |
Return the message with parsed wildcards. | |
Data Fields | |
config | |
Protected Member Functions | |
def | _cleanup (self) |
Cleanup routine calls onUnload() directly. | |
def | _run (self, bwPacket) |
start an complete running turn of an plugin. | |
def | _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.
def 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.
@return Statistics as pyton dict
def 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.
def plugin.pluginBase.PluginBase.setup | ( | self | ) |
Called before alarm can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
def 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.
def 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.
def 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.
def 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.
def plugin.pluginBase.PluginBase.teardown | ( | self | ) |
Called after alarm can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
def plugin.pluginBase.PluginBase.onUnload | ( | self | ) |
Called on shutdown of boswatch can be inherited.
Reimplemented in plugin.mysql.BoswatchPlugin, and plugin.template_plugin.BoswatchPlugin.
def 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 |