ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/tuned/monitors/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/tuned/monitors/base.pyo

�
��\c@s>ddlZejj�ZdgZdefd��YZdS(i����NtMonitorcBs�eZdZed��Zed��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed	��Zdd
�Zd�Zd�Zed
��Zejd��Zd�Zd�Zd�Zd�ZRS(s�
	Base class for all monitors.

	Monitors provide data about the running system to Plugin objects, which use the data
	to tune system parameters.

	Following methods require reimplementation:
	  - _init_available_devices(cls)
	  - update(cls)
	cCsjt|_t�|_t�|_t�|_i|_|j�t|_t	j
ddj|j��dS(Nsavailable devices: %ss, (tFalset_class_initializedtsett
_instancest_available_devicest_updating_devicest_loadt_init_available_devicestTruetlogtdebugtjoin(tcls((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt_init_classs		
	cCs
t��dS(N(tNotImplementedError(R
((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyR!scCs+|j�tjddj|j��dS(Ns available devices updated to: %ss, (RR
RRR(R
((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt_update_available_devices%s
	cCs|jS(N(R(R
((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pytget_available_devices+scCs
t��dS(N(R(R
((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pytupdate/scCs|jj|�dS(N(Rtadd(R
tinstance((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt_register_instance3scCs|jj|�dS(N(Rtremove(R
R((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt_deregister_instance7scCsKt�}x|jD]}||jO}qW|jj�|jj|�dS(N(RRtdevicesRtclearR(R
tnew_updatingR((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt_refresh_updating_devices;s
	
cCs|jS(N(R(R
((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt	instancesCscCs^t|d�s|j�n|j|�|dk	rA||_n|j�|_|j�dS(NR(thasattrRRtNoneRRR(tselfR((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt__init__Is

cCsy|j�WnnXdS(N(tcleanup(R((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt__del__WscCs|j|�|j�dS(N(RR(R((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyR!]s
cCs|jS(N(t_devices(R((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyRascCs*|jt|�@}||_|j�dS(N(RRR#R(Rtvaluetnew_devices((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyRes	cCs@|j�||jkr<|jj|�|jj|�ndS(N(RRR#RR(Rtdevice((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt
add_deviceks
cCs6||jkr2|jj|�|jj|�ndS(N(R#RR(RR&((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt
remove_devicerscCs?tgt|jj��D]}|d|jkr|^q�S(Ni(tdicttlistRtitemsR#(Rtdev_load((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pytget_loadxscCs|jj|d�S(N(RtgetR(RR&((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pytget_device_load{sN(t__name__t
__module__t__doc__tclassmethodRRRRRRRRRRR R"R!tpropertyRtsetterR'R(R-R/(((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyRs&

					(t
tuned.logsttunedtlogsR.R
t__all__tobjectR(((s7/usr/lib/python2.7/site-packages/tuned/monitors/base.pyt<module>s	

Zerion Mini Shell 1.0