コード例 #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)