The watcher.common.loader.loadable Module

class watcher.common.loader.loadable.Loadable(config)[source]

Bases: object

Generic interface for dynamically loading a driver/entry point.

This defines the contract in order to let the loader manager inject the configuration parameters during the loading.

classmethod get_config_opts()[source]

Defines the configuration options to be associated to this loadable

Returns:A list of configuration options relative to this Loadable
Return type:list of oslo_config.cfg.Opt instances
class watcher.common.loader.loadable.LoadableSingleton(config)[source]

Bases: object

Generic interface for dynamically loading a driver as a singleton.

This defines the contract in order to let the loader manager inject the configuration parameters during the loading. Classes inheriting from this class will be singletons.

classmethod get_config_opts()[source]

Defines the configuration options to be associated to this loadable

Returns:A list of configuration options relative to this Loadable
Return type:list of oslo_config.cfg.Opt instances
class watcher.common.loader.loadable.LoadableSingletonMeta

Bases: abc.ABCMeta, oslo_service.service.Singleton

Previous topic

The watcher.common.loader.default Module

Next topic

The watcher.common.messaging.events.event Module

Project Source

This Page