示例#1
0
文件: agent.py 项目: SLAMon/SLAMon
    def __init__(self,
                 afm_url,
                 default_wait=60,
                 max_tasks=2,
                 name='Python Agent 1.0',
                 agent_uuid=None):

        self.afm = Communicator(afm_url)
        self.max_tasks = max_tasks
        self.default_wait = default_wait
        self.name = name
        self.uuid = agent_uuid if agent_uuid else str(uuid.uuid1())
        self._run = True
示例#2
0
 def setUp(self):
     self.communicator = Communicator('https://localhost')