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

An abstract Checker class for all checks, adding new checks made easier through this API

 
Modules
       
pydash

 
Classes
       
abc.ABC(builtins.object)
Checker

 
class Checker(abc.ABC)
    Derive all maintenance jobs from this and direct their result to
_handler function.
 
Compulsory method for the derived classes:
    _execute()
 
 
Method resolution order:
Checker
abc.ABC
builtins.object

Methods defined here:
__init__(self, config_maintain)
Configures checker for low disk space.
 
Parameters
----------
config_maintain
    type: dictionary
    contains information for maintenance task
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 and other attributes defined here:
__abstractmethods__ = frozenset(['_execute'])

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

 
Data
        LOG = <logging.Logger object>