def start_collect_pcaps(self, servers): tasks = [] for server in servers: task = jython_tasks.FunctionCallTask(self._collect_pcaps, [server]) self.jython_task_manager.schedule(task) tasks.append(task) for task in tasks: self.jython_task_manager.get_task_result(task)
def start_fetch_pcaps(self, servers, log_path, is_test_failed): tasks = [] for server in servers: task = jython_tasks.FunctionCallTask( self._fetch_pcaps, [server, log_path, is_test_failed]) self.jython_task_manager.schedule(task) tasks.append(task) for task in tasks: self.jython_task_manager.get_task_result(task)
def reset_cluster_nodes(self, cluster_util, cluster, async_run=False): tasks = list() try: for node in cluster.servers: task = jython_tasks.FunctionCallTask( self.__reset_node, (cluster_util, cluster, node)) self.jython_task_manager.schedule(task) tasks.append(task) except Exception as ex: self.log.critical(ex) if not async_run: for task in tasks: self.jython_task_manager.get_task_result(task) return tasks
def async_get_trace(self, server, get_trace): task = jython_tasks.FunctionCallTask(self._get_trace, [server, get_trace]) self.jython_task_manager.schedule(task) return task
def async_disable_tls(self, server): task = jython_tasks.FunctionCallTask(self._disable_tls, [server]) self.jython_task_manager.schedule(task) return task
def async_enable_dp(self, server): task = jython_tasks.FunctionCallTask(self._enable_dp, [server]) self.jython_task_manager.schedule(task) return task