Server IP : 149.255.58.128 / Your IP : 216.73.216.81
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib/python3.9/site-packages/tuned/exports//__init__.py
from . import interfaces
from . import controller
from . import dbus_exporter as dbus
from . import dbus_exporter_with_properties as dbus_with_properties
from . import unix_socket_exporter as unix_socket
def export(*args, **kwargs):
"""Decorator, use to mark exportable methods."""
def wrapper(method):
method.export_params = [ args, kwargs ]
return method
return wrapper
def signal(*args, **kwargs):
"""Decorator, use to mark exportable signals."""
def wrapper(method):
method.signal_params = [ args, kwargs ]
return method
return wrapper
def property_setter(*args, **kwargs):
"""Decorator, use to mark setters of exportable properties."""
def wrapper(method):
method.property_set_params = [ args, kwargs ]
return method
return wrapper
def property_getter(*args, **kwargs):
"""Decorator, use to mark getters of exportable properties."""
def wrapper(method):
method.property_get_params = [ args, kwargs ]
return method
return wrapper
def property_changed(*args, **kwargs):
ctl = controller.ExportsController.get_instance()
return ctl.property_changed(*args, **kwargs)
def register_exporter(instance):
if not isinstance(instance, interfaces.ExporterInterface):
raise Exception()
ctl = controller.ExportsController.get_instance()
return ctl.register_exporter(instance)
def register_object(instance):
if not isinstance(instance, interfaces.ExportableInterface):
raise Exception()
ctl = controller.ExportsController.get_instance()
return ctl.register_object(instance)
def send_signal(*args, **kwargs):
ctl = controller.ExportsController.get_instance()
return ctl.send_signal(*args, **kwargs)
def start():
ctl = controller.ExportsController.get_instance()
return ctl.start()
def stop():
ctl = controller.ExportsController.get_instance()
return ctl.stop()
def period_check():
ctl = controller.ExportsController.get_instance()
return ctl.period_check()