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)
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)
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)
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()
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)
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'] = []
def __init__(self, port, stats): HDaemonRepSrv.__init__(self, port) self.stats = stats self.register_fn('getstats', self.get_stats)
def __init__(self, port): HDaemonRepSrv.__init__(self, port) self.register_fn('create', self.create_node)
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)
def __init__(self, port): HDaemonRepSrv.__init__(self, port) soc = None self.register_fn('sendmsg', self.send_msg)