Example #1
0
 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)
Example #2
0
 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)
Example #3
0
    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
Example #4
0
 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
Example #5
0
 def async_disable_tls(self, server):
     task = jython_tasks.FunctionCallTask(self._disable_tls, [server])
     self.jython_task_manager.schedule(task)
     return task
Example #6
0
 def async_enable_dp(self, server):
     task = jython_tasks.FunctionCallTask(self._enable_dp, [server])
     self.jython_task_manager.schedule(task)
     return task