ok

Mini Shell

Direktori : /proc/self/root/usr/lib/python2.7/site-packages/tuned/admin/
Upload File :
Current File : //proc/self/root/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyo

�
��\c@s}ddlZddlZddlZddlmZddlmZmZddlm	Z	dgZ
defd��YZdS(i����N(t
DBusGMainLoop(tGLibtGObjecti(tTunedAdminDBusExceptiontDBusControllercBseZed�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsp||_||_||_d|_d|_||_d|_d|_d|_	t
|_t|_
d|_dS(N(t	_bus_namet_interface_namet_object_nametNonet_proxyt
_interfacet_debugt
_main_loopt_actiont_on_exit_actiontTruet_rettFalset_exitt
_exception(tselftbus_nametinterface_nametobject_nametdebug((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt__init__s											cCs�yw|jdkrvtdt�tj�|_tj�}|j	|j
|j�|_tj|jd|j
�|_nWn#tjjk
r�td��nXdS(Ntset_as_defaulttdbus_interfaces>Cannot talk to Tuned daemon via DBus. Is Tuned daemon running?(R	RRRRtMainLoopRtdbust	SystemBust
get_objectRRt	InterfaceRR
t
exceptionst
DBusExceptionR(Rtbus((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt_init_proxys
%cCs�|jdk	rYy|j|j|j�|_WqYtk
rU}||_t|_qYXn|jr�|j	dk	r�|j	|j
|j�n|jj
�tStjd�tS(Ni(R
Rt_action_argst_action_kwargst_action_exit_codeRRRRRt_on_exit_action_argst_on_exit_action_kwargsRtquitRttimetsleep(Rte((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt_idle$s		


cOs||_||_||_dS(N(RR(R)(Rtactiontargstkwargs((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pytset_on_exit_action7s		cOs||_||_||_dS(N(R
R%R&(RR/R0R1((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt
set_action<s		cCsHd|_tj|j�|jj�|jdk	rA|j�n|jS(N(RRRtidle_addR.RtrunR(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyR5As	
cOs�|j�y&|jj|�}|dd|�SWnKtjjk
r}}d}|jrn|dt|�7}nt|��nXdS(Nttimeouti(s DBus call to Tuned daemon faileds (%s)(	R$R
tget_dbus_methodRR!R"RtstrR(Rtmethod_nameR0R1tmethodtdbus_exceptionterr_str((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt_callJs
	cCs!|j�|jj||�dS(N(R$R	tconnect_to_signal(Rtsignaltcb((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pytset_signal_handlerVs
cCs
|jd�S(Nt
is_running(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRBZscCs
|jd�S(Ntstart(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRC]scCs
|jd�S(Ntstop(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRD`scCs
|jd�S(Ntprofiles(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyREcscCs
|jd�S(Nt	profiles2(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRFfscCs|jd|�S(Ntprofile_info(R=(Rtprofile_name((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRGiscCs|jd||�S(Ntlog_capture_start(R=(Rt	log_levelR6((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRIlscCs|jd|�S(Ntlog_capture_finish(R=(Rttoken((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRKoscCs
|jd�S(Ntactive_profile(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRMrscCs
|jd�S(Ntprofile_mode(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRNuscCs&|dkrtdfS|jd|�S(NtsNo profile specifiedtswitch_profile(RR=(Rtnew_profile((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRPxs
cCs
|jd�S(Ntauto_profile(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRR}scCs
|jd�S(Ntrecommend_profile(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRS�scCs
|jd�S(Ntverify_profile(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRT�scCs
|jd�S(Ntverify_profile_ignore_missing(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRU�scCs
|jd�S(Ntdisable(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pytoff�scCs
|jd�S(szReturn dict with plugin names and their hints

		Return:
		dictionary -- {plugin_name: {parameter_name: default_value}}
		tget_all_plugins(R=(R((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pytget_plugins�scCs|jd|�S(s"Return docstring of plugin's classtget_plugin_documentation(R=(Rtplugin_name((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyRZ�scCs|jd|�S(s�Return dictionary with parameters of plugin and their hints

		Parameters:
		plugin_name -- name of plugin

		Return:
		dictionary -- {parameter_name: hint}
		tget_plugin_hints(R=(RR[((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyR\�s	cCs#|jd�||_t|_|S(N(R3RRRR(Rtret((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pytexit�s
		(t__name__t
__module__RRR$R.R2R3R5R=RARBRCRDRERFRGRIRKRMRNRPRRRSRTRURWRYRZR\R^(((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyR
s8																											(
Rtdbus.exceptionsR+tdbus.mainloop.glibRt
gi.repositoryRRR!Rt__all__tobjectR(((s?/usr/lib/python2.7/site-packages/tuned/admin/dbus_controller.pyt<module>s	

Zerion Mini Shell 1.0