本文整理汇总了Python中Library.readIfaceIP方法的典型用法代码示例。如果您正苦于以下问题:Python Library.readIfaceIP方法的具体用法?Python Library.readIfaceIP怎么用?Python Library.readIfaceIP使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Library
的用法示例。
在下文中一共展示了Library.readIfaceIP方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: str
# 需要导入模块: import Library [as 别名]
# 或者: from Library import readIfaceIP [as 别名]
emulationTypeXml.text = str(emulationType)
#<resourceType>Mix</resourceType>
resourceTypeXml =ET.SubElement(emulation,'resourceType')
resourceTypeXml.text = str(resourceTypeEmulation)
#<startTime>now</startTime>
startTimeEmuXml =ET.SubElement(emulation,'emuStartTime')
startTimeEmuXml.text = str(startTimeEmu)
#<stopTime>now+180</stopTime>
stopTimeEmuXml =ET.SubElement(emulation,'emuStopTime')
stopTimeEmuXml.text = str(stopTimeEmu)
scheduledJobsXml = ET.SubElement(emulation,'scheduledJobs')
uri ="PYRO:[email protected]"+str(Library.readIfaceIP("schedinterface"))+":"+str(Library.readLogLevel("schedport"))
daemon=Pyro4.Proxy(uri)
#create active jobs list
try:
n=1
for job in daemon.listJobs():
#6-6-0-CPU-stable-lookbusy-CPU
if job[len(str(emulationID))-1]==str(emulationID):
jobXml = ET.SubElement(scheduledJobsXml,"job"+str(n))
print
jobXml.text=str(job)
n+=1
if n==1:
jobXml = ET.SubElement(scheduledJobsXml,"jobsempty")
jobXml.text="No jobs are scheduled"