ok

Mini Shell

Direktori : /lib/python3.6/site-packages/tuned/plugins/__pycache__/
Upload File :
Current File : //lib/python3.6/site-packages/tuned/plugins/__pycache__/repository.cpython-36.pyc

3

�<�e��@s@ddlmZddlZddlZejj�ZdgZGdd�de�Z	dS)�)�PluginLoaderN�
Repositorycs@eZdZ�fdd�Zedd��Zdd�Zdd�Zd	d
�Z�Z	S)rc		sJtt|�j�t�|_||_||_||_||_||_	||_
||_||_dS)N)
�superr�__init__�set�_plugins�_monitor_repository�_storage_factory�_hardware_inventory�_device_matcher�_device_matcher_udev�_plugin_instance_factory�_global_cfg�
_variables)	�selfZmonitor_repositoryZstorage_factoryZhardware_inventoryZdevice_matcherZdevice_matcher_udevZplugin_instance_factoryZ
global_cfg�	variables)�	__class__�� /usr/lib/python3.6/repository.pyrszRepository.__init__cCs|jS)N)r)rrrr�pluginsszRepository.pluginscCsd|_d|_tjjj|_dS)Nz
tuned.pluginsZplugin_)Z
_namespace�_prefix�tunedr�baseZPlugin�
_interface)rrrr�_set_loader_parameterssz!Repository._set_loader_parametersc	CsNtjd|�|j|�}||j|j|j|j|j|j|j	|j
�}|jj|�|S)Nzcreating plugin %s)
�log�debugZload_pluginrr	r
rrr
rrr�add)rZplugin_nameZ
plugin_clsZplugin_instancerrr�create s
zRepository.createcCs6t||j�st�tjd|�|j�|jj|�dS)Nzremoving plugin %s)�
isinstancer�AssertionErrorrrZcleanupr�remove)rZpluginrrr�delete(szRepository.delete)
�__name__�
__module__�__qualname__r�propertyrrrr"�
__classcell__rr)rrr	s
)
Ztuned.utils.plugin_loaderrZtuned.plugins.baserZ
tuned.logsZlogs�getr�__all__rrrrr�<module>s



Zerion Mini Shell 1.0