def __init__(self): """ Constructor """ DatabaseClient.__init__(self) self.conn = None self.lock = threading.Lock()
def __init__(self): """ Constructor """ DatabaseClient.__init__(self) self.context = zmq.Context() self.conn = self.context.socket(zmq.PUB) self.lock = threading.Lock()
def __init__(self, logger): """ Constructor """ DatabaseClient.__init__(self) self.conn = None self.cursor = None self.lock = threading.Lock() self.logger = logger
def __init__(self, dir=os.getcwd()): """ Constructor """ DatabaseClient.__init__(self) self.lock = threading.Lock() self.file_mapping = dict() if dir is None or dir == '': raise Exception("FileClient does not accept empty directory.") self.file_directory = dir