Esempio n. 1
0
 def get_command_of_start_test(jar_file, class_name, topology, mode,
                               worker_num, zk_hosts, znode_dir, topic,
                               top_n, window_size, slide_window_size):
     return get_lst_command(
         script_rtw.script_of_start_test,
         (jar_file, class_name, topology, mode, worker_num, zk_hosts,
          znode_dir, topic, top_n, window_size, slide_window_size))
Esempio n. 2
0
 def get_command_of_nethogs_monitor(nethogs_log_file):
     lst_command = get_lst_command(script_rtw.script_of_nethogs_monitor,
                                   (nethogs_log_file, nethogs_log_file))
     return map(lambda x: x.replace("{{m}}", "%s"), lst_command)
Esempio n. 3
0
 def get_command_of_get_worder_pid():
     return get_lst_command(script_rtw.script_of_get_worker_pid)
Esempio n. 4
0
 def get_command_of_delete_topic(zk_servers, topic):
     return get_lst_command(script_rtw.script_of_delete_topic,
                            (zk_servers, topic))
Esempio n. 5
0
 def get_command_of_kill_topology(topology_name):
     return get_lst_command(script_rtw.script_of_kill_topology,
                            (topology_name))
Esempio n. 6
0
 def get_command_of_gen_rolling_top_words(kafka_servers, ack, topic,
                                          interval, thread_num):
     return get_lst_command(
         script_rtw.script_of_gen_data,
         (kafka_servers, ack, topic, interval, thread_num))
Esempio n. 7
0
 def get_command_of_kill_nethogs_monitor():
     return get_lst_command(script_rtw.script_of_kill_nethogs_monitor)