The apmec.manager Module

The apmec.manager Module

class apmec.manager.ApmecManager(options=None, config_file=None)

Bases: object

Apmec’s Manager class.

Apmec’s Manager class is responsible for parsing a config file and instantiating the correct plugin that concretely implement apmec_plugin_base class. The caller should make sure that ApmecManager is a singleton.

classmethod clear_instance()
classmethod get_instance()
classmethod get_plugin()
classmethod get_service_plugins()
classmethod has_instance()
static load_class_for_provider(namespace, plugin_provider)

Loads plugin using alias or class name

Load class using stevedore alias or the class name :param namespace: namespace where alias is defined :param plugin_provider: plugin alias or class name :returns: plugin that is loaded :raises ImportError: if fails to load plugin

class apmec.manager.Manager(host=None)

Bases: oslo_service.periodic_task.PeriodicTasks

after_start()

Handler post initialization stuff.

Child classes can override this method.

init_host()

Handle initialization if this is a standalone service.

Child classes should override this method.

periodic_tasks(context, raise_on_error=False)
target = <Target version=1.0>
apmec.manager.validate_post_plugin_load()

Checks if the configuration variables are valid.

If the configuration is invalid then the method will return an error message. If all is OK then it will return None.

apmec.manager.validate_pre_plugin_load()

Checks if the configuration variables are valid.

If the configuration is invalid then the method will return an error message. If all is OK then it will return None.

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.