Пример #1
0
 def process_response(self, data):
     HostState.set_ls()
     self.transport.write("%s\n" % HostState.get_whole_stat())
Пример #2
0
 def dataReceived(self, data):
     HostState.set_ls()
     d = Deferred()
     # d.addCallback(get_metrics)
     d.addCallback(self.process_response)
     d.callback(None)