示例#1
0
 def __init__(self, name=None, conf=None):   
     multiprocessing.Process.__init__(self,name = name)
     ZBase.__init__(self,'TailProcess_%s' % name)
     self.name = name
     self.conf = conf
     self.tailer = tail.Tail(self.conf['log_path'], self.conf['max_size']) 
     self.data = {}
     self.analyseResult = zplugin.DICT
     self.regular = {}
     self.transform = {}
     self.initRegular()
示例#2
0
文件: ztail.py 项目: actank/zmon
 def __init__(self):
     ZBase.__init__(self,'ZTail')
     self.conf = {}
     #维护当前正在运行的进程,便于创建和清理
     self.tailProcess = {}
示例#3
0
文件: zcm.py 项目: actank/zmon
 def __init__(self):
     ZBase.__init__(self, 'Zcm')
     self.pub = {}
     self.products = self.GetConf('products')
示例#4
0
 def __init__(self):
     ZBase.__init__(self, 'Zcm')
     self.pub = {}
     self.products = self.GetConf('products')
示例#5
0
文件: zpush.py 项目: actank/zmon
 def __init__(self):
     ZBase.__init__(self, 'ZPush')
     self.products = self.GetConf('products')
示例#6
0
文件: zpush.py 项目: actank/zmon
 def __init__(self, threadname):
     threading.Thread.__init__(self, name=threadname)
     ZBase.__init__(self,'PushThread_%s' % threadname)
示例#7
0
 def __init__(self):
     ZBase.__init__(self, 'ZTail')
     self.conf = {}
     #维护当前正在运行的进程,便于创建和清理
     self.tailProcess = {}
示例#8
0
文件: zpush.py 项目: lipeng-wei/zmon
 def __init__(self):
     ZBase.__init__(self, 'ZPush')
     self.products = self.GetConf('products')
示例#9
0
文件: zpush.py 项目: lipeng-wei/zmon
 def __init__(self, threadname):
     threading.Thread.__init__(self, name=threadname)
     ZBase.__init__(self, 'PushThread_%s' % threadname)