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()
def __init__(self): ZBase.__init__(self,'ZTail') self.conf = {} #维护当前正在运行的进程,便于创建和清理 self.tailProcess = {}
def __init__(self): ZBase.__init__(self, 'Zcm') self.pub = {} self.products = self.GetConf('products')
def __init__(self): ZBase.__init__(self, 'ZPush') self.products = self.GetConf('products')
def __init__(self, threadname): threading.Thread.__init__(self, name=threadname) ZBase.__init__(self,'PushThread_%s' % threadname)
def __init__(self): ZBase.__init__(self, 'ZTail') self.conf = {} #维护当前正在运行的进程,便于创建和清理 self.tailProcess = {}
def __init__(self, threadname): threading.Thread.__init__(self, name=threadname) ZBase.__init__(self, 'PushThread_%s' % threadname)