Esempio n. 1
0
 def __init__(self, port, run_data, zk_server_ip):
     self.run_data = run_data
     self.zk_server_ip = zk_server_ip
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('startreader', self.start_reader)
     self.register_fn('stopreader', self.stop_reader)
     self.register_fn('getstats', self.get_stats)
Esempio n. 2
0
 def __init__(self, port, run_data, zk_server_ip):
     self.run_data = run_data
     self.zk_server_ip = zk_server_ip
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('startwriter', self.stress_writer)
     self.register_fn('stopstress', self.stress_stop)
     self.register_fn('startreader', self.stress_reader)
     self.register_fn('no', self.do_nothing)
Esempio n. 3
0
 def __init__(self, port, run_data, pub_metrics):
     self.run_data = run_data
     self.pub_metrics = pub_metrics
     self.init_pub_metrics()
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('teststart', self.test_start)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('teststatus', self.test_status)
     self.register_fn('updateconfig', self.update_config)
Esempio n. 4
0
 def __init__(self, port, run_data, pub_metrics):
     self.run_data = run_data
     self.pub_metrics = pub_metrics
     self.init_pub_metrics()
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('teststart', self.test_start)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('teststatus', self.test_status)
     self.register_fn('updateconfig', self.update_config)
Esempio n. 5
0
 def __init__(self, port):
     self.msg_cnt = 0  # message count, other option is global, making progress
     self.recv_rate = 0
     self.reconnect_cnt = 0
     self.reconnect_rate = 0
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('resetstats', self.reset_stats)
     self.register_fn('updateconfig', self.update_config)
     self.reset_stats()
Esempio n. 6
0
 def __init__(self, port, run_data, stress_metrics):
     self.run_data = run_data
     self.stress_metrics = stress_metrics
     self.init_stress_metrics()
     HDaemonRepSrv.__init__(self, port)
     # Register Functions
     self.register_fn('teststart', self.test_start)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('teststatus', self.test_status)
     self.register_fn('updateconfig', self.update_config)
Esempio n. 7
0
 def __init__(self, port, run_data, stress_metrics):
     self.run_data = run_data
     self.stress_metrics = stress_metrics
     self.init_stress_metrics()
     HDaemonRepSrv.__init__(self, port)
     # Register Functions
     self.register_fn('teststart', self.test_start)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('teststatus', self.test_status)
     self.register_fn('updateconfig', self.update_config)
Esempio n. 8
0
 def __init__(self, port, run_data, znodes_cr, znodes_data, znodes_mod,
              zk_server_ip, threads):
     self.run_data = run_data
     self.znodes_cr = znodes_cr
     self.znodes_data = znodes_data
     self.znodes_mod = znodes_mod
     self.threads = int(threads)
     self.zk_server_ip = zk_server_ip
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('sendmsg', self.test_start)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('teststatus', self.test_status)
     self.run_data['stats']['watches'] = []
Esempio n. 9
0
 def __init__(self, port, stats):
     HDaemonRepSrv.__init__(self, port)
     self.stats = stats
     self.register_fn('getstats', self.get_stats)
Esempio n. 10
0
	def __init__(self, port):
		HDaemonRepSrv.__init__(self, port)
		self.register_fn('create', self.create_node)
Esempio n. 11
0
 def __init__(self, port):
     self.msg_cnt = 0  # message count, other option is global, making progress
     HDaemonRepSrv.__init__(self, port)
     self.register_fn('getstats', self.get_stats)
     self.register_fn('resetstats', self.reset_stats)
Esempio n. 12
0
 def __init__(self, port, stats):
     HDaemonRepSrv.__init__(self, port)
     self.stats = stats
     self.register_fn('getstats', self.get_stats)
Esempio n. 13
0
 def __init__(self, port):
     HDaemonRepSrv.__init__(self, port)
     soc = None
     self.register_fn('sendmsg', self.send_msg)