--- /dev/null
+from util import Config
+from typing import Dict, Any
+
+
+class BaseSystem:
+ def __init__(self, **kw: Any) -> None:
+ self._system: Dict = {}
+ self.config: Config = kw['config']
+
+ def get_system(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_status(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_metadata(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_processors(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_memory(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_power(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_network(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
+
+ def get_storage(self) -> Dict[str, Dict[str, Dict]]:
+ raise NotImplementedError()
-from system import System
+from basesystem import BaseSystem
from redfish_client import RedFishClient
from threading import Thread, Lock
from time import sleep
log = Logger(__name__)
-class RedfishSystem(System):
+class RedfishSystem(BaseSystem):
def __init__(self, **kw: Any) -> None:
super().__init__(**kw)
self.host: str = kw['host']
from reporter import Reporter
from util import Config, Logger
from typing import Dict
+from basesystem import BaseSystem
import sys
# for devel purposes
+++ /dev/null
-from util import Config
-from typing import Dict, Any
-
-
-class System:
- def __init__(self, **kw: Any) -> None:
- self._system: Dict = {}
- self.config: Config = kw['config']
-
- def get_system(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_status(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_metadata(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_processors(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_memory(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_power(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_network(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()
-
- def get_storage(self) -> Dict[str, Dict[str, Dict]]:
- raise NotImplementedError()