ok

Mini Shell

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

3

�<�e?�@s@ddlZddlZddlmZejj�ZdgZGdd�de�Z	dS)�N)�PluginLoader�
Repositorycs@eZdZ�fdd�Zedd��Zdd�Zdd�Zd	d
�Z�Z	S)rcstt|�j�t�|_dS)N)�superr�__init__�set�	_monitors)�self)�	__class__�� /usr/lib/python3.6/repository.pyrszRepository.__init__cCs|jS)N)r)rr
r
r�monitorsszRepository.monitorscCsd|_d|_tjj|_dS)Nztuned.monitorsZmonitor_)Z
_namespace�_prefix�tunedrZMonitor�
_interface)rr
r
r�_set_loader_parameterssz!Repository._set_loader_parameterscCs0tjd|�|j|�}||�}|jj|�|S)Nzcreating monitor %s)�log�debugZload_pluginr�add)rZplugin_nameZdevicesZmonitor_clsZmonitor_instancer
r
r�creates

zRepository.createcCs(t||j�st�|j�|jj|�dS)N)�
isinstancer�AssertionErrorZcleanupr�remove)rZmonitorr
r
r�deleteszRepository.delete)
�__name__�
__module__�__qualname__r�propertyrrrr�
__classcell__r
r
)r	rr	s
)
Z
tuned.logsrZtuned.monitorsZtuned.utils.plugin_loaderrZlogs�getr�__all__rr
r
r
r�<module>s



Zerion Mini Shell 1.0