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
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)
def set_ttl(self): DataNode.set_ttl(self) for channel in self._channels.itervalues(): channel.ttl(DataNode.default_time_to_live)