def __init__(self, adtName, srcConfName,pipeConfName,sinkConfName, logConfName = config[0]): self.adtName = adtName #assert not logConfName #get log config parameter dictionary self.logList = [] #initialize log(s) according to parameters. log_args = get_conf_attr(logConfName) for attDict in log_args: reticLog.addLogger(self.logList,attDict) #source object self.adaptorSource = fileSource.source(get_conf_attr(srcConfName,'source'),self.logList) self.interval = self.adaptorSource.interval #pipe object self.adaptorPipe = toXML.pipe(get_conf_attr(pipeConfName,'pipe'),self.logList) #sink obj self.adaptorSink = SQLSink_forTPWD.sink(get_conf_attr(sinkConfName,'sink'),self.logList)