b3j0f.conf.watcher module¶
-
b3j0f.conf.watcher.
add_configurable
(configurable)[source]¶ Add input configurable to list of watchers.
Parameters: configurable (Configurable) – configurable to add.
-
b3j0f.conf.watcher.
remove_configurable
(configurable)[source]¶ Remove configurable to list of watchers.
Parameters: configurable (Configurable) – configurable to remove.
-
b3j0f.conf.watcher.
on_update_conf_file
(conf_file)[source]¶ Apply configuration on all configurables which watch input conf_file.
Parameters: conf_file (str) – configuration file to reconfigure.
-
class
b3j0f.conf.watcher.
Watcher
(sleeping_time=5, *args, **kwargs)[source]¶ Bases:
b3j0f.conf.configurable.core.Configurable
Watches all sleeping_time.
-
CATEGORY
= 'WATCHER'¶
-
CONF_FILE
= 'configuration/watcher.conf'¶
-
DEFAULT_CONFIGURATION
= Configuration(OrderedDict([('WATCHER', Category(WATCHER, {'sleeping_time': Parameter(sleeping_time, 5, <type 'int'>)}))]))¶
-
SLEEPING_TIME
= 'sleeping_time'¶
-
sleeping_time
¶
-