Exemple #1
0
 def __init__(self, working_dir, config_path):
     super(MasterControlProgram, self).__init__()
     self.jobs = JobCollection()
     self.working_dir = working_dir
     self.config = manager.ConfigManager(config_path)
     self.context = command_context.CommandContext()
     self.state_watcher = statemanager.StateChangeWatcher()
     log.info('initialized')
Exemple #2
0
 def __init__(self, working_dir, config_path):
     super(MasterControlProgram, self).__init__()
     self.jobs = job.JobCollection()
     self.services = service.ServiceCollection()
     self.working_dir = working_dir
     self.crash_reporter = None
     self.config = manager.ConfigManager(config_path)
     self.context = command_context.CommandContext()
     self.event_recorder = event.get_recorder()
     self.event_recorder.ok('started')
     self.state_watcher = statemanager.StateChangeWatcher()