'The agent process'

def run(self):

    try:
        confThread = ConfPullThread(_settings, self.mmsAgent)
        confThread.setName('ConfPullThread')
        confThread.start()
        hostStateMonitorThread = MonitorHostState(self.logger, self.mmsAgent)
        hostStateMonitorThread.setName('MonitorHostState')
        hostStateMonitorThread.start()
        while (not self.mmsAgent.done):
            try:
                self.mmsAgent.sendDataToMms()
            except Exception as e:
                self.logger.error(traceback.format_exc(e))
            finally:
                try:
                    time.sleep(self.mmsAgent.collectionInterval)
                except:
                    pass
    except Exception as e:
        self.logger.error(traceback.format_exc(e))
