''' @name run_scheduler_job @description start scheduler on a new thread. scheduler runs: - process engine - model engine - risk engine - anomaly engine ''' def run_scheduler_job(self): x = threading.Thread(target=scheduler_run, args=("Test parameter to scheduler_run",)) logging.info("core: before running thread") x.start() logging.info("core: wait for the thread to finish") ''' @name run_display_information_job @description run display information job ''' def run_display_information_job(self): print("Getting display information") self.display = Display() self.display.get_system_display() if __name__ == "__main__": print("Core Start") Test.Run() core: Core = Core() core.initiate()
logging.info("core: before running thread") x.start() logging.info("core: wait for the thread to finish") ''' @name run_display_information_job @description run display information job ''' def run_display_information_job(self): print("Getting display information") self.display = Display() self.display.get_system_display() if __name__ == "__main__": print("[Starting OpenUBA]") print(sys.argv) # TODO: refactor for more robust parameters if len(sys.argv) > 2: if sys.argv[1] == "profile_model": model_name: str = str(sys.argv[2]) model_profile: dict = ProfileModel(model_name).profile() for component in model_profile.keys(): logging.info( str(component) + " : " + str(model_profile[component])) else: Test.Run() # TODO: remove suite invocation core: Core = Core() core.initiate()