def __init__(self, msgh_mgr): MyProcess.__init__(self, msgh_mgr, "PlayTimeCalcMgr") self.process_num = 1 self.play_time_collectors = {} self.count = 0 self.rpt_fd = None self.start_day = "" self.end_day = ""
def __init__(self, msgh_mgr, calc_mgr_queue, qname): MyProcess.__init__(self, msgh_mgr, qname) self.count = 0 self.interval_send_report = 5 #seconds self.send_report_ts = 0 self.calc_mgr_queue = calc_mgr_queue self.play_time_collectors = {} self.start_day = "" self.end_day = ""
def __init__(self, msgh_mgr, qname): MyProcess.__init__(self, msgh_mgr, qname) self.count = 0 self.current = 0 self.mongocli = MongoClient(mongo_host, mongo_port) self.logdb = self.mongocli.vodlog self.player_startup = self.logdb.player_startup self.calc_queue_names = [] self.calc_queues = [] self.current_q_index = 0 self.start_pos = "" self.end_pos = ""
def __init__(self, msgh_mgr): MyProcess.__init__(self, msgh_mgr, "PlayerStartupGrabberMgr") self.process_num = 1 self.start_day = "" self.end_day = ""