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'
run()[source]
sleeping_time
start()[source]
stop()[source]
b3j0f.conf.watcher.get_watcher()[source]

Get global watcher.

Returns:global watcher.
Return type:Watcher
b3j0f.conf.watcher.start_watch()[source]

Start default watcher.

b3j0f.conf.watcher.stop_watch()[source]

Stop default watcher.

b3j0f.conf.watcher.change_sleeping_time(sleeping_time)[source]

Change of sleeping_time for default watcher.