예제 #1
0
파일: lima.py 프로젝트: mguijarr/bliss
 def __init__(self,name,**keys):
     DataNode.__init__(self,'lima',name,**keys)
     self.image_status_channel = channels.RawChannel(self.db_name()+"_"+"image_status",
                                                     redis = self.db_connection)
     saving_params_name = '%s_saving_params' % self.db_name()
     self._saving_params = QueueObjSetting(saving_params_name, connection=self.db_connection)
     self._storage_task = None
예제 #2
0
파일: zerod.py 프로젝트: mguijarr/bliss
 def __init__(self,name,**keys):
     DataNode.__init__(self,'zerod',name,**keys)
     cnx = self.db_connection
     self._channels_name = QueueSetting('%s_channels' % self.db_name(),connection=cnx)
     self._channels = {}
     for channel_name in self._channels_name:
         self._channels[channel_name] = QueueSetting('%s_%s' % (self.db_name(),channel_name),
                                                     connection=cnx)
예제 #3
0
파일: zerod.py 프로젝트: mguijarr/bliss
 def set_ttl(self):
     DataNode.set_ttl(self)
     for channel in self._channels.itervalues():
         channel.ttl(DataNode.default_time_to_live)