def init(self):
     log.setDefaultCategory(compconsts.TRANSCODER_LOG_CATEGORY)
     log.setDebugNotifier(self.__notifyDebug)
     self.logName = None
     self._diagnoseMode = False
     self._waitAcknowledge = False
     self._moveInputFile = True
     self._niceLevel = None
     self._job = None
     self._report = None
     self._reportDefaultPath = None
     self._reportForcedPath = None
     self._configPath = None
     self._config = None
     self._inputPath = None
     self._local = None
     self._status = TranscoderStatusEnum.pending
     self._pathAttr = None
     self.uiState.addDictKey('job-data', {})
     self.uiState.addDictKey('source-data', {})
     self.uiState.addDictKey('targets-data', {})
     self.uiState.setitem('job-data', "progress", 0.0)
     self.uiState.setitem('job-data', "job-state", JobStateEnum.pending)
     self.uiState.setitem('job-data', "acknowledged", False)
     self.uiState.setitem('job-data', "status", self._status)
예제 #2
0
def main(args):
    log.setDefaultCategory(adminconsts.ADMIN_LOG_CATEGORY)
    log.setDebugNotifier(notifier.notifyDebug)

    options, configPath = parse_options(args)

    loader = inifile.IniFile()
    config = adminconfig.ClusterConfig()
    try:
        loader.loadFromFile(config, configPath)
    except Exception, e:
        sys.stderr.write('Error: %s\n' % e)
        sys.exit(1)
예제 #3
0
 def init(self):
     log.setDebugNotifier(self._notifyDebug)
     log.setDefaultCategory(self.logCategory)
     self.uiState.addListKey('monitored-profiles', [])
     self.uiState.addListKey('active-profiles', [])
     self.uiState.addListKey('http-profiles', [])
     self.uiState.addDictKey('pending-files', {})
     self.uiState.addDictKey('virtbase-map', {})
     self._local = None
     self._pathAttr = None
     self.active_profiles = []
     self.watchers = []
     self.http_profiles = []
     self.profiles_virtualbase = {}