TODO: We need a form of in-memory store

master
Steve L. Nyemba 8 years ago
parent 586d8a8968
commit 231fe8d8c1

@ -11,6 +11,8 @@ import subprocess
from sets import Set
import re
import datetime
import Queue
class Analysis:
def __init__(self):
@ -182,3 +184,11 @@ class DetailProcess(Analysis):
#return [{"memory_usage":row[0],"cpu_usage":row[1],"memory_available":row[2]/1000,"label":row[3]} for row in ma]
return ma
class QListener(Thread)
def __init__(self,handlers):
self.handlers = handlers
self.queue = Queue.LifoQueue()
def post(self) :
for handler in self.handlers:
self.queue.put(handler.)
Loading…
Cancel
Save