當前位置: 首頁>>代碼示例>>Python>>正文


Python ServiceController.serviceCat方法代碼示例

本文整理匯總了Python中agent.controllers.service.ServiceController.serviceCat方法的典型用法代碼示例。如果您正苦於以下問題:Python ServiceController.serviceCat方法的具體用法?Python ServiceController.serviceCat怎麽用?Python ServiceController.serviceCat使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在agent.controllers.service.ServiceController的用法示例。


在下文中一共展示了ServiceController.serviceCat方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
    def __init__(self, threadMgr, service, manifest):
        """ Constructor """
        from agent.controllers.service import ServiceController

        AgentThread.__init__(self, threadMgr, cat = [ServiceController.serviceCat(service)], name = 'delete_manifest')
        self.service = service
        self.manifest = manifest
開發者ID:anzarafaq,項目名稱:cronusagent,代碼行數:9,代碼來源:manifest_delete.py

示例2: __init__

# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
 def __init__(self, threadMgr, service, manifest, packages, attemptDownload = True, forcePackages = None, skipProp = True):
     """ Constructor """
     DownloadHelper.__init__(self, threadMgr, cat = [ServiceController.serviceCat(service)], name = 'create_manifest')
     self.__manifest = manifest
     self.__service = service
     self.__packages = packages
     self.__attemptDownload = attemptDownload
     self.__forcePackages = forcePackages
     self.__skipProp = skipProp
開發者ID:anzarafaq,項目名稱:cronusagent,代碼行數:11,代碼來源:manifest_create.py

示例3: stopServiceThread

# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
    def stopServiceThread(self):
        """ stop all service threads """
        from agent.controllers.service import ServiceController

        LOG.info("Stopping service thread")
        with self.__lock:
            services = ServiceController.getServices()
            for service in services:
                threads = self.getThreadByCat(ServiceController.serviceCat(service), fastbreak=False)
                for thread in threads:
                    thread.stop()
開發者ID:arunkumar-m,項目名稱:cronus-agent,代碼行數:13,代碼來源:threadmgr.py

示例4: createTestThread

# 需要導入模塊: from agent.controllers.service import ServiceController [as 別名]
# 或者: from agent.controllers.service.ServiceController import serviceCat [as 別名]
 def createTestThread(serviceName):
     appGlobal = config['pylons.app_globals']
     testTh = WaitThread(appGlobal.threadMgr, ServiceController.serviceCat(serviceName))
     testTh.start()
     return testTh
開發者ID:cronuspaas,項目名稱:cronusagent,代碼行數:7,代碼來源:test_cleanup.py


注:本文中的agent.controllers.service.ServiceController.serviceCat方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。