def __init__(self, path, uri, heartbeat): MeanerBase.__init__(self, path) self.hub_uri = uri self.context = zmq.Context(1) self.socket = self.context.socket(zmq.SUB) self.heartbeat_interval = heartbeat self.last_heartbeat = None p = create_hearbeat_param() self.heartbeat_param = saveparam.SaveParam(p, self.szbase_path)
def __init__(self, path, uri, heartbeat, interval): MeanerBase.__init__(self, path) self.hub_uri = uri self.context = zmq.Context(1) self.socket = self.context.socket(zmq.SUB) self.last_heartbeat = None self.heartbeat_interval = heartbeat self.last_meaner4_heartbeat = None self.saving_interval = interval self.saving_time = 0 self.heartbeat_param = saveparam.SaveParam(create_hearbeat_param(), self.szbase_path) self.meaner4_heartbeat_param = saveparam.SaveParam(create_meaner4_heartbeat_param(), self.szbase_path) self.msgs = {}
def __init__(self, path, uri, heartbeat, interval): MeanerBase.__init__(self, path) self.hub_uri = uri self.context = zmq.Context(1) self.socket = self.context.socket(zmq.SUB) self.last_heartbeat = None self.heartbeat_interval = heartbeat self.last_meaner4_heartbeat = None self.saving_interval = interval self.saving_time = 0 self.heartbeat_param = saveparam.SaveParam(create_hearbeat_param(), self.szbase_path) self.meaner4_heartbeat_param = saveparam.SaveParam(create_meaner4_heartbeat_param(), self.szbase_path) self.msgs = {}
def __init__(self, path): MeanerBase.__init__(self, path)
def __init__(self, path): MeanerBase.__init__(self, path)