(self, *args, **kwargs)
| 305 | lambda: collections.deque(maxlen=10))) # type: dict |
| 306 | |
| 307 | def __init__(self, *args, **kwargs): |
| 308 | super(Module, self).__init__(*args, **kwargs) |
| 309 | CherryPyConfig.__init__(self) |
| 310 | self.server_adapter = None |
| 311 | |
| 312 | # configure the dashboard's crypto caller. by default it will |
| 313 | # use the remote caller to avoid pyo3 conflicts |
| 314 | choose_crypto_caller(str(self.get_module_option('crypto_caller', ''))) |
| 315 | |
| 316 | mgr.init(self) |
| 317 | |
| 318 | self._stopping = threading.Event() |
| 319 | self.shutdown_event = threading.Event() |
| 320 | self.ACCESS_CTRL_DB = None |
| 321 | self.SSO_DB = None |
| 322 | self.health_checks = {} |
| 323 | self.nvmeof_collectors = {} |
| 324 | |
| 325 | @classmethod |
| 326 | def can_run(cls): |
no test coverage detected