MINI MINI MANI MO
ó
©=[c           @   sZ   d  d l  Z d  d l Z d  d l m Z e j j ƒ  Z d g Z d e f d „  ƒ  YZ	 d S(   iÿÿÿÿN(   t   PluginLoadert
   Repositoryc           B   s;   e  Z d  „  Z e d „  ƒ Z d „  Z d „  Z d „  Z RS(   c         C   s#   t  t |  ƒ j ƒ  t ƒ  |  _ d  S(   N(   t   superR   t   __init__t   sett	   _monitors(   t   self(    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyR      s    c         C   s   |  j  S(   N(   R   (   R   (    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyt   monitors   s    c         C   s%   d |  _  d |  _ t j j |  _ d  S(   Ns   tuned.monitorst   monitor_(   t
   _namespacet   _prefixt   tunedR   t   Monitort
   _interface(   R   (    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyt   _set_loader_parameters   s    		c         C   s@   t  j d | ƒ |  j | ƒ } | | ƒ } |  j j | ƒ | S(   Ns   creating monitor %s(   t   logt   debugt   load_pluginR   t   add(   R   t   plugin_namet   devicest   monitor_clst   monitor_instance(    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyt   create   s
    c         C   s6   t  | |  j ƒ s t ‚ | j ƒ  |  j j | ƒ d  S(   N(   t
   isinstanceR
   t   AssertionErrort   cleanupR   t   remove(   R   t   monitor(    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyt   delete   s    
(   t   __name__t
   __module__R   t   propertyR   R   R   R   (    (    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyR   	   s
   			(
   t
   tuned.logsR   t   tuned.monitorst   tuned.utils.plugin_loaderR    t   logst   getR   t   __all__R   (    (    (    s=   /usr/lib/python2.7/site-packages/tuned/monitors/repository.pyt   <module>   s
   	
 OHA YOOOO