Beispiel #1
0
 def storeSysInfo(self, service):
     """Store info about the service in the cache."""
     if not self._socket:
         return
     try:
         key, res = getSysInfo(service)
         msg = '%s@%s%s%s\n' % (currenttime(), key, OP_TELL,
                                cache_dump(res))
         self._socket.sendall(to_utf8(msg))
     except Exception:
         self.log.exception('storing sysinfo failed')
Beispiel #2
0
 def storeSysInfo(self):
     key, res = getSysInfo('cache')
     self._attached_db.tell(key, str(res), currenttime(), None, None)