Server IP : 149.255.58.128 / Your IP : 216.73.216.44
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/monitors//repository.py
import tuned.logs
import tuned.monitors
from tuned.utils.plugin_loader import PluginLoader
log = tuned.logs.get()
__all__ = ["Repository"]
class Repository(PluginLoader):
def __init__(self):
super(Repository, self).__init__()
self._monitors = set()
@property
def monitors(self):
return self._monitors
def _set_loader_parameters(self):
self._namespace = "tuned.monitors"
self._prefix = "monitor_"
self._interface = tuned.monitors.Monitor
def create(self, plugin_name, devices):
log.debug("creating monitor %s" % plugin_name)
monitor_cls = self.load_plugin(plugin_name)
monitor_instance = monitor_cls(devices)
self._monitors.add(monitor_instance)
return monitor_instance
def delete(self, monitor):
assert isinstance(monitor, self._interface)
monitor.cleanup()
self._monitors.remove(monitor)
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | December 04 2024 22:44:57 | 0 / root | 0755 | |
__pycache__ | -- | December 04 2024 22:44:57 | 0 / root | 0755 | |
| | | | | |
__init__.py | 0.045 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |
base.py | 2.854 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |
monitor_disk.py | 0.865 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |
monitor_load.py | 0.299 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |
monitor_net.py | 1.188 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |
repository.py | 0.812 KB | August 07 2024 20:09:40 | 0 / root | 0644 | |