Exemplo n.º 1
0
 def __init__(self, dm, storage, ts=None):
     """
     :param dm: DataManager, if not available in cache then use dm to request data
     :param storage: Storage for the cached data
     :param ts:
     """
     DataManager.__init__(self)
     self.dm = dm
     self.storage = storage
     self.ts = ts or pd.datetime.now()
     self.logger = log.instance_logger('cachemgr', self)
Exemplo n.º 2
0
 def __init__(self, dm, storage, ts=None):
     """
     :param dm: DataManager, if not available in cache then use dm to request data
     :param storage: Storage for the cached data
     :param ts:
     """
     DataManager.__init__(self)
     self.dm = dm
     self.storage = storage
     self.ts = ts or pd.datetime.now()
     self.logger = log.instance_logger('cachemgr', self)
Exemplo n.º 3
0
 def __init__(self, host, port):
     self.host = host
     self.port = port
     self.logger = log.instance_logger(repr(self), self)
Exemplo n.º 4
0
 def __init__(self, host, port):
     self.host = host
     self.port = port
     self.logger = log.instance_logger(repr(self), self)
Exemplo n.º 5
0
 def __init__(self, dm, storage, ts=None):
     DataManager.__init__(self)
     self.dm = dm
     self.storage = storage
     self.ts = ts or pd.datetime.now()
     self.logger = log.instance_logger('cachemgr', self)