# # -------------------------------------------------------- """ When the test system is installed - especially in a continous pipeline - you dont know which versions are installed and if each instance is running. In order to know these fundamental points it should be checked. The result could be inserted into a database so you can get an overview over all test environments. """ class SystemMonitor: def check_Instance(self): """ checks system-instances and writes it into the parameter-file """ job = ulrich.program.Job.getInstance() verify = -1 + job.getDebugLevel(self.name) self.m.logInfo("--- " + str(inspect.currentframe().f_code.co_name) + "() started at " + datetime.now().strftime( "%Y%m%d_%H%M%S") + " for " + str(self.name).upper()) for c in self.confs["components"].keys(): if self.confs["components"][c] == "none": pass elif self.confs["components"][c]["relationtyp"] == "call": self.m.logInfo("check connection from " + self.name + " to " + c) elif self.confs["components"][c]["relationtyp"] == "called": self.m.logInfo("check connection from " + c + " to " + self.name) elif self.confs["components"][c]["relationtyp"] == "queue": self.m.logInfo("check queue from " + self.name + " to " + c) self.m.setMsg("checkInstance for " + self.name + " is OK") self.m.logInfo("--- " + str(inspect.currentframe().f_code.co_name) + "() finished at " + datetime.now().strftime( "%Y%m%d_%H%M%S") + " for " + str(self.name).upper()) def restart_Instance(self): pass