示例#1
0
    def _connect_action(self):
        self._keys_expired = False
        BaseCacheClient._connect_action(self)
        if self.showwatchdog:
            # also ask for and subscribe to all watchdog events
            self._socket.sendall(to_utf8('@watchdog/%s\n' % OP_WILDCARD))
            self._socket.sendall(to_utf8('@watchdog/%s\n' % OP_SUBSCRIBE))

        # use appname to distinguish between different instances
        self.storeSysInfo(session.appname)
示例#2
0
 def _connect_action(self):
     # inhibit direct processing of updates
     self._process_updates = False
     try:
         BaseCacheClient._connect_action(self)
         # now process all keys we got
         time = currenttime()
         for key in list(self._keydict):
             try:
                 self._process_key(time, key, self._keydict[key])
             except Exception:
                 self.log.warning('error handling first update for key %s',
                                  key,
                                  exc=1)
     finally:
         self._process_updates = True
     self.storeSysInfo('watchdog')
     self._queue.put('watchdog/%s\n' % OP_SUBSCRIBE)
     self._publish_config()
示例#3
0
 def _connect_action(self):
     BaseCacheClient._connect_action(self)
     self.sendUpdate()
示例#4
0
 def _connect_action(self):
     # clear the local database before filling it up
     with self._dblock:
         self._db.clear()
     BaseCacheClient._connect_action(self)
     self.signals.connected.emit()