The watcher.common.loader.loadable Module

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

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.