nephos.maintenance.channel_online_check
index
/media/hdd/Essentials/Chapter_Kgp_WOrk/GSoC/projectnephos_gsoc18/GSoC18Nephos/nephos/maintenance/channel_online_check.py

Contains class for the checking of channel, whether online or not

 
Modules
       
os

 
Classes
       
nephos.maintenance.checker.Checker(abc.ABC)
ChannelOnlineCheck

 
class ChannelOnlineCheck(nephos.maintenance.checker.Checker)
    Checks whether all the channels are online or not and
prepares a report of the number of channels up, down and
the magnitude of change.
 
 
Method resolution order:
ChannelOnlineCheck
nephos.maintenance.checker.Checker
abc.ABC
builtins.object

Methods defined here:
__init__(self, config_maintain)

Data and other attributes defined here:
__abstractmethods__ = frozenset([])

Methods inherited from nephos.maintenance.checker.Checker:
to_run(self, kind)
Checks from config file if the maintenance job is to be executed
 
Parameters
-------
kind
    type: str
    kind of the job to be executed
 
Returns
-------
executes self._executed() if to be executed
displays warning log otherwise

Data descriptors inherited from abc.ABC:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        CH_DOWN_COMMAND = 'UPDATE channels\n SET status = "down"\n WHERE ip = ?'
CH_IP_INDEX = 2
CH_NAME_INDEX = 1
CH_STAT_INDEX = 6
CH_UP_COMMAND = 'UPDATE channels\n SET status = "up"\n WHERE ip = ?'
LOG = <logging.Logger object>
MIN_BYTES = 1024