当前位置: 首页>>代码示例>>Python>>正文


Python EDStatus.EDStatus类代码示例

本文整理汇总了Python中EDStatus.EDStatus的典型用法代码示例。如果您正苦于以下问题:Python EDStatus类的具体用法?Python EDStatus怎么用?Python EDStatus使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了EDStatus类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: tellFinished

 def tellFinished(self, _edObject=None):
     """
     Tell EDStatus that the plugin has finished, either in success either in error 
     """
     if self.isFailure():
         EDStatus.tellFailure(self.__strPluginId)
     else:
         EDStatus.tellSuccess(self.__strPluginId)
开发者ID:olofsvensson,项目名称:edna-kernel,代码行数:8,代码来源:EDPlugin.py

示例2: join

 def join(self):
     """
     wait for all jobs to finish
     """
     while not (self.jobQueue.empty() and \
             (self.__semaphoreNbThreads._Semaphore__value == self.iNbCpu) and \
             (EDUtilsParallel.getNbRunning() == 0) and \
             (self.processingSem._Semaphore__value == 1) and\
             (len(EDStatus.getRunning()) == 0)):
         time.sleep(1)
开发者ID:gbourgh,项目名称:edna,代码行数:10,代码来源:analysis_modeling.py

示例3: unitTestFailed

 def unitTestFailed(self):
     """
     check the failure of a plugin is registerd 
     """
     EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestFailed")
     EDStatus.tellFailure(self.strPluginName)
     EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess()))
     EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning()))
     EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure()))
     EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running")
     EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished")
     EDAssert.equal(True, self.strPluginName in EDStatus.getFailure(), "Plugin Failed as expected")
开发者ID:antolinos,项目名称:edna,代码行数:12,代码来源:EDTestCaseEDStatus.py

示例4: unitTestRunning

 def unitTestRunning(self):
     """
     check the status after a job creation
     """
     EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestRunning")
     EDStatus.tellRunning(self.strPluginName)
     EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess()))
     EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning()))
     EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure()))
     EDAssert.equal(True, self.strPluginName in EDStatus.getRunning(), "Plugin  running")
     EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished")
     EDAssert.equal(False, self.strPluginName in EDStatus.getFailure(), "Plugin not yet Finished")
开发者ID:antolinos,项目名称:edna,代码行数:12,代码来源:EDTestCaseEDStatus.py

示例5: preProcess

 def preProcess(self, _edObject=None):
     """
     Writes xml data input in the working dir (if required)
     Connects a slot for generating the executive summary after the plugin execution
     Connects a slot for checking output data to the finally process
     Initialize the base directory
     Configures the plugin
     Checks the input data
     """
     EDAction.preProcess(self, _edObject)
     self.DEBUG("EDPlugin.preProcess")
     self.connectPostProcess(self.exportDataOutput)
     if self.__bWriteDataXMLInputOutput:
         if self.__bWriteDataXMLInput:
             self.connectPreProcess(self.writeDataInput)
     self.connectPostProcess(self.generateExecutiveSummary)
     self.connectFinallyProcess(self.checkDataOutput)
     if (self.__strBaseName is None):
         self.setBaseName(self.createBaseName())
     EDStatus.tellRunning(self.__strPluginId)
     self.connectFinallyProcess(self.tellFinished)
     self.checkParameters()
开发者ID:olofsvensson,项目名称:edna-kernel,代码行数:22,代码来源:EDPlugin.py

示例6: getFailure

 def getFailure(self):
     """
     retrieve the list of plugins finished with failure (with their plugin-Id)
     """
     return EDStatus.getFailure()
开发者ID:gbourgh,项目名称:edna,代码行数:5,代码来源:analysis_modeling.py

示例7: getSuccess

 def getSuccess(self):
     """
     retrieve the list of plugins finished with success (with their plugin-Id)
     """
     return EDStatus.getSuccess()
开发者ID:gbourgh,项目名称:edna,代码行数:5,代码来源:analysis_modeling.py

示例8: getRunning

 def getRunning(self):
     """
     retrieve the list of plugins currently under execution (with their plugin-Id)
     """
     return EDStatus.getRunning()
开发者ID:gbourgh,项目名称:edna,代码行数:5,代码来源:analysis_modeling.py


注:本文中的EDStatus.EDStatus类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。