示例#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')
示例#2
0
文件: server.py 项目: ess-dmsc/nicos
 def storeSysInfo(self):
     key, res = getSysInfo('cache')
     self._attached_db.tell(key, str(res), currenttime(), None, None)