Documentation Virtualization Abstraction Layer (VAL)

class motey.val.valmanager.VALManager(logger, labeling_repository, plugin_manager)[source]

Manger for all the virtual abstraction layer plugins. Loads the plugins and wrapps the commands.

close()[source]

Will clean up the VALManager. At first it will remove the label from the labeling engine and afterwards all the deactivate method for each plugin will be executed.

instantiate(image, plugin_type)[source]

Instantiate an image.

Parameters:
  • image (motey.models.image.Image) – the image which should be executed
  • plugin_type (str) – Will only be executed with the given plugin
Returns:

the image id of the instantiated image

register_plugins()[source]

Register all the available plugins. A plugin has to be located under motey/val/plugins. After all the available plugins are loaded, the activate method of the plugin will be executed and a label with the related plugin type will be added to the labeling engine.

start()[source]

Starts the VALManager and register all the available plugins.

terminate(instance_name, plugin_type)[source]

Terminate a running instance.

Parameters:
  • instance_name (str) – the name of the instance
  • plugin_type (str) – The instance will only be terminated for the given plugin